.auth-shell {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 0 40px;
}

.auth-card {
    width: min(100%, 640px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow-card);
    padding: 32px;
}

.auth-title {
    margin: 0 0 10px 0;
    font-family: "Sora", sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.auth-subtitle {
    margin: 0 0 22px 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 16px;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    display: block;
    font-weight: 700;
    color: var(--text);
    font-size: 15px;
}

.auth-field input,
.auth-field select,
.auth-field textarea {
    width: 100%;
    border: 1px solid #d8e6fb;
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: 0.16s ease;
    font-family: inherit;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
    border-color: var(--blue-300);
    box-shadow: 0 0 0 4px rgba(45, 127, 255, 0.10);
}

.auth-check label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--muted);
}

.auth-submit-btn,
.auth-google-btn,
.auth-secondary-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    border-radius: 16px;
    border: 0;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    transition: 0.18s ease;
    cursor: pointer;
    padding: 0 18px;
}

.auth-submit-btn {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
    color: white;
    box-shadow: 0 14px 28px rgba(22, 93, 255, 0.22);
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
}

.auth-google-btn,
.auth-secondary-btn {
    width: 100%;
    background: #ffffff;
    color: var(--text);
    border: 1px solid #dbe7f5;
}

.auth-google-btn:hover,
.auth-secondary-btn:hover {
    background: var(--blue-50);
    border-color: var(--blue-200);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 12px 0 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #e5eefc;
    z-index: 0;
}

.auth-divider span {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.95);
    padding: 0 10px;
}

.auth-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

.auth-links a {
    color: var(--blue-700);
    text-decoration: none;
    font-weight: 700;
}

.auth-alert,
.auth-error,
.auth-note-box,
.auth-success {
    border-radius: 16px;
    padding: 14px 16px;
    line-height: 1.7;
    font-size: 14px;
}

.auth-alert,
.auth-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.auth-note-box {
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    color: var(--muted);
}

.auth-success {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
    margin-bottom: 18px;
    font-weight: 600;
}

.profile-topline {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
    color: white;
    font-family: "Sora", sans-serif;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(22, 93, 255, 0.20);
}

.profile-title {
    margin: 0 0 4px 0;
    font-family: "Sora", sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.profile-email {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}