/* ROBO NEXİMUS AI EVRENİ — Unified Identity & Auth Design System */
:root {
    --rn-sea-blue: #0284c7;
    --rn-sea-blue-hover: #0369a1;
    --rn-cyan: #38bdf8;
    --rn-white: #ffffff;
    --rn-text-main: #0f172a;
    --rn-text-muted: #475569;
    --rn-border-blue: rgba(56, 189, 248, 0.45);
    --rn-primary: var(--rn-sea-blue);
    --rn-primary-hover: var(--rn-sea-blue-hover);
    --rn-ink: var(--rn-text-main);
    --rn-muted: var(--rn-text-muted);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--rn-text-main);
    background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.35) 0%, transparent 50%), 
                radial-gradient(circle at 20% 80%, rgba(2, 132, 199, 0.22) 0%, transparent 45%), 
                linear-gradient(135deg, #f8fafc 0%, #e0f2fe 45%, #bae6fd 85%, #7dd3fc 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

body > .rn-footer {
    margin-top: 0;
}

/* Shell & Artwork Container */
.ra-auth-shell {
    flex: 1 1 auto;
    width: 100%;
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 40px 7vw;
    margin: 0;
}

.ra-artwork {
    display: none !important;
}

/* Elevated White / Sea-Blue Card */
.ra-auth-card,
.ra-select-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid var(--rn-border-blue);
    box-shadow: 
        0 25px 60px -12px rgba(2, 132, 199, 0.28),
        0 10px 24px -6px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    padding: 40px 36px;
    width: 100%;
    max-width: 440px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--rn-text-main);
}

.ra-select-container {
    max-width: 480px;
}

.ra-auth-card:hover,
.ra-select-container:hover {
    box-shadow: 
        0 30px 70px -12px rgba(2, 132, 199, 0.35),
        0 14px 28px -6px rgba(15, 23, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Brand Header */
.ra-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--rn-sea-blue);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    margin-bottom: 12px;
}

.ra-brand svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.45));
}

.ra-brand span {
    color: var(--rn-sea-blue);
    -webkit-text-fill-color: initial;
    background: none;
}

/* Titles & Subtitles */
.ra-auth-shell {
    --rn-text-main: #0f172a;
    --rn-text-muted: #475569;
}

.ra-auth-title,
.ra-select-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin: 8px 0 6px 0;
    line-height: 1.25;
}

.ra-auth-sub,
.ra-select-sub {
    font-size: 0.92rem;
    color: #475569;
    margin-bottom: 24px;
    line-height: 1.5;
}

.ra-auth-sub strong {
    color: var(--rn-text-main);
    font-weight: 700;
}

/* Input Fields (Min 50px, 16px Font Size to Prevent Mobile Zoom) */
.ra-input-group {
    margin-bottom: 18px;
    text-align: left;
}

.ra-input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.ra-input-text,
.ra-select,
.ra-add-input,
.ra-add-select {
    width: 100%;
    min-height: 50px;
    height: 50px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: var(--rn-text-main);
    font-size: 16px;
    font-family: inherit;
    padding: 0 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ra-auth-card .ra-input-text {
    color: #0f172a;
    caret-color: #0f172a;
    -webkit-text-fill-color: #0f172a;
}

.ra-auth-card .ra-input-text::placeholder {
    color: #64748b;
    -webkit-text-fill-color: #64748b;
    opacity: 1;
}

.ra-input-text:focus,
.ra-select:focus,
.ra-add-input:focus,
.ra-add-select:focus {
    border-color: var(--rn-sea-blue);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.16);
    outline: none;
}

/* Help text */
.ra-help {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 4px;
    margin-bottom: 14px;
    line-height: 1.4;
}

/* Primary Action Buttons (Min 52px, Sea-Blue Gradient) */
.ra-submit-btn,
.ra-choose-btn,
.ra-add-btn {
    width: 100%;
    height: 52px;
    min-height: 52px;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 22px -4px rgba(2, 132, 199, 0.42);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    margin-top: 10px;
}

.ra-submit-btn:hover,
.ra-choose-btn:hover,
.ra-add-btn:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -4px rgba(2, 132, 199, 0.52);
}

.ra-submit-btn:active,
.ra-choose-btn:active,
.ra-add-btn:active {
    transform: translateY(0);
}

/* Resend button */
.ra-resend-btn {
    background: none;
    border: none;
    color: var(--rn-sea-blue);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.2s ease;
    margin-top: 12px;
    display: inline-block;
}

.ra-resend-btn:hover {
    color: var(--rn-sea-blue-hover);
    background: rgba(2, 132, 199, 0.08);
}

/* Links Footer */
.ra-links-container {
    margin-top: 22px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--rn-text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ra-link,
.ra-logout-link {
    color: var(--rn-sea-blue);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.ra-link:hover,
.ra-logout-link:hover {
    color: var(--rn-sea-blue-hover);
    text-decoration: underline;
}

.ra-link-muted {
    color: #64748b;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Alerts */
.ra-alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;
}

.ra-alert-error {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #b91c1c;
}

.ra-alert-success {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    color: #15803d;
}

/* Profile Selection Cards */
.ra-student-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    transition: all 0.2s ease;
}

.ra-student-card:hover {
    border-color: #38bdf8;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.12);
}

.ra-student-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ra-student-avatar svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
}

.ra-student-info {
    flex: 1;
    text-align: left;
}

.ra-student-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.ra-student-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ra-badge-grade {
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.78rem;
}

.ra-badge-robot {
    background: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.78rem;
}

.ra-choose-btn {
    height: 44px;
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.9rem;
    width: auto;
    margin: 0;
}

.ra-add-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.ra-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Kurallar */
@media (max-width: 1024px) {
    .ra-auth-shell {
        justify-content: center;
        padding: 40px 24px;
    }
    .ra-auth-card,
    .ra-select-container {
        max-width: 440px;
    }
}

@media (max-width: 520px) {
    .ra-auth-shell {
        padding: 24px 16px;
    }
    .ra-auth-card,
    .ra-select-container {
        padding: 32px 20px;
        border-radius: 22px;
        width: 100%;
        max-width: 94vw;
    }
    .ra-auth-title,
    .ra-select-title {
        font-size: 1.45rem;
    }
    .ra-input-text,
    .ra-select,
    .ra-add-input,
    .ra-add-select {
        font-size: 16px !important;
        height: 50px;
    }
    .ra-student-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
    }
    .ra-student-info {
        text-align: center;
    }
    .ra-student-meta {
        justify-content: center;
    }
    .ra-choose-btn {
        width: 100%;
        height: 48px;
    }
}
