﻿/**
 * Student Parents Login Page Stylesheet
 * University of Technology and Education - Da Nang University
 */

/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3782F5;
    --secondary-color: #002878;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white-color: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== MAIN LOGIN CONTAINER ===== */
.login__container {
    display: flex;
    min-height: 100vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== LEFT SIDE - IMAGE & INFO ===== */
.login__side {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(55, 130, 245, 0.95) 0%, rgba(0, 40, 120, 0.95) 100%);
    clip-path: url(#curveClipDesktop);
}

.login__side-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(55, 130, 245, 0.9) 0%, rgba(0, 40, 120, 0.9) 100%);
    backdrop-filter: blur(10px);
}

.login__content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    width: 100%;
    max-width: 500px;
    animation: fadeInLeft 0.8s ease-out;
}

.login__logo {
    margin-bottom: 3rem;
    max-width: 500px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    animation: bounceIn 1s ease-out;
}

.login__logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

    .login__logo-img:hover {
        transform: scale(1.1);
    }

.login__welcome-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    color: white !important;
}

.login__welcome-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 300;
    color: white !important;
}

.login__features {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.login__feature {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: slideInLeft 0.6s ease-out backwards;
    width: calc((100% - 40px) / 2);
    margin: 10px;
}

    .login__feature:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(5px);
    }

.login__feature-icon {
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.login__feature-text {
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

/* ===== RIGHT SIDE - LOGIN FORM ===== */
.login__form-container {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeInRight 0.8s ease-out;
}

.login__form-wrapper {
    width: 100%;
    max-width: 450px;
}

.login__form-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.login__form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.login__form-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
}

/* ===== FORM STYLES ===== */
.login__form {
    width: 100%;
}

    .login__form a {
        text-decoration: none;
    }

.login__form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.login__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.login__label-icon {
    color: var(--primary-color);
    font-size: 1rem;
}

.login__input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    transition: all 0.3s ease;
    background: var(--gray-100);
    color: var(--gray-800);
}

    .login__input:focus {
        outline: none;
        border-color: var(--primary-color);
        background: white;
        box-shadow: 0 0 0 4px rgba(55, 130, 245, 0.1);
    }

    .login__input::placeholder {
        color: var(--gray-500);
    }

/* ===== BUTTONS ===== */
.login__button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(55, 130, 245, 0.3);
    position: relative;
    overflow: hidden;
}

    .login__button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }

    .login__button:hover::before {
        left: 100%;
    }

    .login__button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(55, 130, 245, 0.4);
    }

    .login__button:active {
        transform: translateY(0);
    }

    .login__button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.login__button--secondary {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
}

    .login__button--secondary:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
        background: rgba(55, 130, 245, 0.05);
    }

.login__button-icon {
    font-size: 1.2rem;
}

/* ===== FORM FOOTER ===== */
.login__footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.login__footer-text {
    margin-bottom: 0.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.login__footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

    .login__footer-link:hover {
        color: var(--secondary-color);
        text-decoration: underline;
    }

.login__copyright {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .login__container {
        flex-direction: column;
    }

    .login__side {
        min-height: 300px;
        padding: 2rem;
        clip-path: url(#curveClipMobile);
    }

    .login__welcome-title {
        font-size: 2rem;
    }

    .login__features {
        display: none;
    }

    .login__form-container {
        padding: 2rem 1.5rem;
    }

    .login__form-title {
        font-size: 1.75rem;
    }

    .login__form-options .login__forgot-link {
        display: none;
    }

    .login__forgot-mobile {
        display: block;
    }
}

@media (max-width: 576px) {
    .login__side {
        min-height: 250px;
        padding: 1.5rem;
    }

    .login__welcome-title {
        font-size: 1.4rem;
    }

    .login__welcome-subtitle {
        font-size: 1rem;
    }

    .login__form-container {
        padding: 1.5rem 1rem;
    }

    .login__form-header {
        margin-bottom: 2rem;
    }

    .login__form-title {
        font-size: 1.5rem;
    }

    .login__input {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .login__button {
        padding: 0.875rem;
        font-size: 1rem;
    }

    .login__form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 414px) {
    .login__welcome-title {
        font-size: 1.4rem;
    }
}


/* ===== LOADING STATE ===== */
.login__button .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== FOCUS STATES FOR ACCESSIBILITY ===== */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
