/*
|--------------------------------------------------------------------------
| AtomsPlay Authentication Styles
|--------------------------------------------------------------------------
|
| IMPORTANT:
| This file ONLY styles authentication pages.
| It does NOT style:
| - body
| - header
| - footer
| - sidebar
| - global buttons
| - dashboard elements
|
|--------------------------------------------------------------------------
*/


/* =========================================================
   AUTH PAGE
========================================================= */

.auth-page {
    width: 100%;
    max-width: 100%;
    min-height: auto;

    padding: 50px 20px 70px;

    margin: 0;

    overflow-x: hidden;
}


/* =========================================================
   AUTH WRAPPER
========================================================= */

.auth-page .auth-wrapper {
    width: 100%;
    max-width: 700px;

    margin: 0 auto;
}


/*
|--------------------------------------------------------------------------
| BACKWARD COMPATIBILITY
|--------------------------------------------------------------------------
| Your current register page uses .auth-container.
| Keep this so you don't have to change everything immediately.
*/

.auth-page .auth-container {
    width: 100%;
    max-width: 700px;

    margin: 0 auto;
}


/* =========================================================
   AUTH CARD
========================================================= */

.auth-page .auth-card {
    width: 100%;
    max-width: 700px;

    margin: 0 auto;

    padding: 40px;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 20px;

    box-shadow:
        0 15px 40px
        rgba(15, 23, 42, 0.08);

    overflow: hidden;
}


/* =========================================================
   LOGO
========================================================= */

.auth-page .auth-logo {
    width: 64px;
    height: 64px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eff6ff;

    border-radius: 16px;

    font-size: 32px;
}


/* =========================================================
   TITLE
========================================================= */

.auth-page .auth-card h1 {
    margin: 0;

    text-align: center;

    color: #0f172a;

    font-size: 32px;

    line-height: 1.2;
}


/* =========================================================
   SUBTITLE
========================================================= */

.auth-page .auth-subtitle {
    margin: 10px 0 28px;

    text-align: center;

    color: #64748b;

    font-size: 15px;

    line-height: 1.6;
}


/* =========================================================
   REGISTRATION INFORMATION
========================================================= */

.auth-page .registration-info {
    width: 100%;

    margin-bottom: 25px;

    padding: 16px;

    background: #eff6ff;

    border: 1px solid #bfdbfe;

    border-radius: 12px;

    color: #1e3a8a;

    font-size: 14px;

    line-height: 1.6;
}


.auth-page .registration-info strong {
    display: block;

    margin-bottom: 7px;

    color: #1e40af;

    font-weight: 700;
}


.auth-page .registration-info p {
    margin: 5px 0;
}


/* =========================================================
   FORM
========================================================= */

.auth-page #registerForm,
.auth-page #loginForm {
    width: 100%;
}


/* =========================================================
   FORM GROUP
========================================================= */

.auth-page .form-group {
    width: 100%;

    margin-bottom: 18px;
}


/* =========================================================
   LABEL
========================================================= */

.auth-page .form-group label {
    display: block;

    margin-bottom: 7px;

    color: #334155;

    font-size: 14px;

    font-weight: 700;
}


/* =========================================================
   INPUTS
========================================================= */

.auth-page .form-group input,
.auth-page .form-group select,
.auth-page .form-group textarea {
    display: block;

    width: 100%;

    min-height: 48px;

    padding: 12px 14px;

    background: #ffffff;

    border: 1px solid #cbd5e1;

    border-radius: 10px;

    color: #0f172a;

    font-family: inherit;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   INPUT FOCUS
========================================================= */

.auth-page .form-group input:focus,
.auth-page .form-group select:focus,
.auth-page .form-group textarea:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.10);
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.auth-page .form-group input::placeholder,
.auth-page .form-group textarea::placeholder {
    color: #94a3b8;
}


/* =========================================================
   SMALL HELP TEXT
========================================================= */

.auth-page .form-group small {
    display: block;

    margin-top: 6px;

    color: #64748b;

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================================
   NAME ROW
========================================================= */

.auth-page .form-row {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}


/* =========================================================
   ROLE INFORMATION
========================================================= */

.auth-page .role-info,
.auth-page .student-info,
.auth-page .teacher-info {
    width: 100%;

    margin-top: 10px;

    padding: 14px;

    border-radius: 10px;

    font-size: 13px;

    line-height: 1.5;
}


.auth-page .role-info strong,
.auth-page .student-info strong,
.auth-page .teacher-info strong {
    display: block;

    margin-bottom: 5px;
}


.auth-page .role-info p,
.auth-page .student-info p,
.auth-page .teacher-info p {
    margin: 0;
}


/* =========================================================
   STUDENT INFORMATION
========================================================= */

.auth-page .student-info {
    background: #fff7ed;

    border: 1px solid #fed7aa;

    color: #9a3412;
}


/* =========================================================
   TEACHER INFORMATION
========================================================= */

.auth-page .teacher-info {
    background: #f0fdf4;

    border: 1px solid #bbf7d0;

    color: #166534;
}


/* =========================================================
   AUTH BUTTON
========================================================= */

.auth-page .auth-button {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    min-height: 50px;

    margin-top: 5px;

    padding: 13px 20px;

    border: none;

    border-radius: 10px;

    background: #2563eb;

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.auth-page .auth-button:hover {
    background: #1d4ed8;

    transform: translateY(-1px);
}


.auth-page .auth-button:disabled {
    opacity: 0.6;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   LOGIN / REGISTER MESSAGE
========================================================= */

.auth-page .auth-message {
    display: none;

    width: 100%;

    margin-bottom: 20px;

    padding: 12px 14px;

    border-radius: 10px;

    text-align: center;

    font-size: 14px;

    line-height: 1.5;
}


.auth-page .auth-message.success {
    display: block;

    background: #dcfce7;

    border: 1px solid #bbf7d0;

    color: #166534;
}


.auth-page .auth-message.error {
    display: block;

    background: #fee2e2;

    border: 1px solid #fecaca;

    color: #991b1b;
}


/* =========================================================
   AUTH LINKS
========================================================= */

.auth-page .auth-links {
    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #e2e8f0;

    text-align: center;
}


.auth-page .auth-links p {
    margin: 8px 0;

    color: #64748b;

    font-size: 14px;
}


.auth-page .auth-links a {
    color: #2563eb;

    font-weight: 700;

    text-decoration: none;
}


.auth-page .auth-links a:hover {
    text-decoration: underline;
}


/* =========================================================
   AUTH FOOTER LINKS
========================================================= */

.auth-page .auth-footer {
    margin-top: 15px;

    text-align: center;

    color: #64748b;

    font-size: 14px;

    line-height: 1.5;
}


.auth-page .auth-footer a {
    color: #2563eb;

    font-weight: 700;

    text-decoration: none;
}


.auth-page .auth-footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .auth-page {
        padding: 35px 16px 50px;
    }

    .auth-page .auth-card {
        padding: 30px 25px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .auth-page {
        padding: 25px 12px 40px;
    }


    .auth-page .auth-card {
        padding: 25px 18px;

        border-radius: 16px;
    }


    .auth-page .auth-card h1 {
        font-size: 27px;
    }


    .auth-page .auth-logo {
        width: 56px;
        height: 56px;

        font-size: 28px;
    }


    .auth-page .auth-subtitle {
        font-size: 14px;

        margin-bottom: 22px;
    }


    .auth-page .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .auth-page .form-group input,
    .auth-page .form-group select,
    .auth-page .form-group textarea {
        min-height: 46px;

        font-size: 15px;
    }


    .auth-page .registration-info {
        padding: 14px;

        font-size: 13px;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .auth-page {
        padding-left: 8px;

        padding-right: 8px;
    }


    .auth-page .auth-card {
        padding: 20px 14px;
    }


    .auth-page .auth-card h1 {
        font-size: 24px;
    }

}