/*
            OCEAN Member Login
            主題配色
            主色 Blue: #456BE6
            深藍文字: #1D3659
            淺藍背景: #C4D4EC
            淺粉提示: #FFDEDC
            淺橘點綴: #FFDBC1
        */

:root {
    --ocean-primary: #456BE6;
    --ocean-text: #1D3659;
    --ocean-soft-blue: #C4D4EC;
    --ocean-soft-pink: #FFDEDC;
    --ocean-soft-orange: #FFDBC1;

    --ocean-logo-circle: #1D3659;

    --bg-1: #F6F9FF;
    --bg-2: #EEF4FF;
    --border: rgba(29, 54, 89, 0.18);
    --shadow: 0 18px 50px rgba(29, 54, 89, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--ocean-text);
    background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
    min-height: 100vh;
}

/* 右上角加入返回按鈕 */
.ocean-auth-header {
    position: relative;
    padding: 22px 22px 16px 22px;
    border-bottom: 1px solid rgba(29, 54, 89, 0.10);
    background:
        radial-gradient(1200px 260px at 10% 0%, rgba(69, 107, 230, 0.16), transparent 55%),
        radial-gradient(900px 240px at 90% 20%, rgba(196, 212, 236, 0.55), transparent 60%),
        #ffffff;
}

.ocean-auth-home-link {
    position: absolute;
    top: 18px;
    right: 18px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(29, 54, 89, 0.12);

    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ocean-auth-home-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(29, 54, 89, 0.12);
}

.ocean-auth-home-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.ocean-auth-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.ocean-auth-logo {
    width: 260px;
    max-width: 100%;
    height: auto;
    display: block;
}

.ocean-auth-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.ocean-auth-logo {
    width: 160px;
    max-width: 100%;
    height: auto;
    display: block;
}

.ocean-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.ocean-auth-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ocean-auth-header {
    padding: 22px 22px 16px 22px;
    border-bottom: 1px solid rgba(29, 54, 89, 0.10);
    background:
        radial-gradient(1200px 260px at 10% 0%, rgba(69, 107, 230, 0.16), transparent 55%),
        radial-gradient(900px 240px at 90% 20%, rgba(196, 212, 236, 0.55), transparent 60%),
        #ffffff;
}

.ocean-auth-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--ocean-text);
}

.ocean-auth-subtitle {
    margin: 8px 0 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(29, 54, 89, 0.70);
}

.ocean-auth-body {
    padding: 20px 22px 22px 22px;
}

.ocean-alert {
    border-radius: 12px;
    padding: 12px 12px;
    margin-bottom: 14px;
    background: rgba(255, 222, 220, 0.55);
    border: 1px solid rgba(255, 222, 220, 0.95);
    color: #7A1C1C;
    font-size: 13px;
    line-height: 1.6;
}

.ocean-form-group {
    margin-bottom: 14px;
}

.ocean-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: rgba(29, 54, 89, 0.92);
}

.ocean-input {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(29, 54, 89, 0.18);
    background: #ffffff;
    padding: 0 12px;
    font-size: 14px;
    color: var(--ocean-text);
    outline: none;
    transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.ocean-input::placeholder {
    color: rgba(29, 54, 89, 0.45);
}

.ocean-input:focus {
    border-color: rgba(69, 107, 230, 0.60);
    box-shadow: 0 0 0 4px rgba(69, 107, 230, 0.12);
}

.ocean-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.ocean-btn-primary {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;

    background: linear-gradient(180deg, rgba(29, 54, 89, 1), rgba(20, 40, 68, 1));
    color: #ffffff;

    font-weight: 800;
    letter-spacing: 0.4px;
    transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;

    box-shadow: 0 10px 24px rgba(29, 54, 89, 0.22);
}

.ocean-btn-primary:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.ocean-btn-primary:active {
    transform: translateY(0px);
    box-shadow: 0 8px 18px rgba(29, 54, 89, 0.18);
}

.ocean-footer {
    padding: 14px 22px 18px 22px;
    border-top: 1px solid rgba(29, 54, 89, 0.10);
    background: linear-gradient(180deg, rgba(196, 212, 236, 0.14), rgba(196, 212, 236, 0.06));
    font-size: 12px;
    color: rgba(29, 54, 89, 0.62);
    line-height: 1.7;
}

.ocean-footer strong {
    color: rgba(29, 54, 89, 0.86);
    font-weight: 800;
}

.ocean-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 219, 193, 0.55);
    border: 1px solid rgba(255, 219, 193, 0.95);
    color: rgba(29, 54, 89, 0.86);
    margin-right: 8px;
}

.ocean-secondary-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.ocean-btn-secondary {
    width:100%;
    /* max-width: 320px; */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    border: 1px solid rgba(29, 54, 89, 0.18);
    background: #ffffff;
    color: #1D3659;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ocean-btn-secondary:hover {
    transform: translateY(-1px);
    background: #F6F9FF;
    box-shadow: 0 8px 18px rgba(29, 54, 89, 0.08);
}

/* 忘記密碼 */
.ocean-auth-forgot-wrap{
    margin-top:10px;
    margin-bottom:18px;
    text-align:right;
}

.ocean-auth-forgot-link{
    font-size:14px;
    color:#456BE6;
    text-decoration:none;
}

.ocean-auth-forgot-link:hover{
    text-decoration:underline;
}

@media (max-width: 768px) {
    .ocean-auth-header {
        padding: 18px 16px 14px 16px;
    }

    .ocean-auth-body {
        padding: 18px 16px 18px 16px;
    }

    .ocean-footer {
        padding: 12px 16px 16px 16px;
    }
}