* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(145deg, #f3f6fc 0%, #eef2f8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    margin: 0;
}

/* main card container */
.auth-card {
    max-width: 460px;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(0px);
    border-radius: 36px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.5);
}

/* header area */
.card-header {
    padding: 32px 32px 16px 32px;
    text-align: center;
    border-bottom: 1px solid #e9edf2;
    background: #ffffff;
}

.card-header h1 {
    font-size: 1.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, #1a2a3f, #1e3a5f);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}

.card-header p {
    color: #5b6e8c;
    font-size: 0.9rem;
    margin-top: 8px;
    font-weight: 400;
}

/* form container */
.form-container {
    padding: 28px 32px 32px 32px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2c3e66;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: 'Inter', monospace;
    border: 1.5px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    transition: all 0.2s;
    outline: none;
    color: #0a1c2f;
    font-weight: 500;
}

.input-group input:focus {
    border-color: #2b6e9e;
    box-shadow: 0 0 0 3px rgba(43, 110, 158, 0.2);
}

.input-group input::placeholder {
    color: #9da9bb;
    font-weight: 400;
}

.action-btn {
    width: 100%;
    background: #1e4663;
    border: none;
    padding: 14px 18px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 12px;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.action-btn:hover {
    background: #0f3552;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -8px rgba(20, 60, 90, 0.3);
}

.action-btn:active {
    transform: translateY(1px);
}

.action-btn:disabled {
    background: #a0b3c9;
    cursor: not-allowed;
    transform: none;
}

.toggle-link {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: #436c8f;
}

.toggle-link a {
    color: #1c6f9c;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px dashed #bdd4e8;
}

.toggle-link a:hover {
    color: #0a4568;
    border-bottom-color: #0a4568;
}

.error-message {
    background: #fff0f0;
    border-left: 5px solid #dc2626;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.85rem;
    color: #b91c1c;
    margin-bottom: 20px;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 8px;
}

.error-message.show {
    display: flex;
}

/* welcome panel styles */
.welcome-content {
    padding: 20px 32px 32px 32px;
    text-align: center;
}

.avatar-icon {
    background: #eaf3fc;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 60px;
    font-size: 2.8rem;
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

.welcome-greeting {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #152e42;
}

.user-email {
    background: #f0f4f9;
    padding: 12px 16px;
    border-radius: 48px;
    display: inline-block;
    font-family: monospace;
    font-weight: 500;
    color: #1b4d6e;
    margin: 16px 0 20px;
    font-size: 0.95rem;
    word-break: break-all;
}

.logout-btn {
    background: #ffffff;
    border: 1.5px solid #cbdde9;
    color: #1e4663;
    padding: 12px 20px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-size: 1rem;
    font-family: inherit;
    margin-top: 18px;
}

.logout-btn:hover {
    background: #fef7e6;
    border-color: #b9cfdf;
}

.info-note {
    font-size: 0.75rem;
    color: #6c86a3;
    text-align: center;
    margin-top: 28px;
    border-top: 1px solid #e9edf2;
    padding-top: 20px;
}

.hidden {
    display: none;
}

.confirm-password-field {
    transition: 0.1s;
}

@media (max-width: 480px) {
    .auth-card {
        border-radius: 28px;
    }
    .form-container, .card-header {
        padding-left: 20px;
        padding-right: 20px;
    }
}