/* Login page styles for /acceso-aula - matches React Login page */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Inter:wght@400;600;700;900&display=swap');

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

html, body {
    height: 100%;
    font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.academia-login-page {
    min-height: 100vh;
    position: relative;
    background-color: #11121f;
    color: #e2e1f4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background image with dark overlay */
.academia-login-bg {
    position: absolute;
    inset: 0;
    background-image: url('bg-login2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.academia-login-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(17, 18, 31, 0.65);
}

/* Decorative glows */
.academia-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.academia-glow--top {
    top: -10%;
    right: -5%;
    width: 40%;
    height: 40%;
    background-color: rgba(145, 208, 223, 0.1);
}

.academia-glow--bottom {
    bottom: -10%;
    left: -5%;
    width: 50%;
    height: 50%;
    background-color: rgba(236, 178, 54, 0.05);
}

/* Main container */
.academia-login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero text - hidden on mobile */
.academia-login-hero {
    display: none;
}

/* Login card wrapper */
.academia-login-form-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    flex: 1;
}

/* Glassmorphism card */
.academia-login-card {
    width: 100%;
    max-width: 460px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(17, 18, 31, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 40px rgba(236, 178, 54, 0.08);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    animation: academiaFadeInUp 0.5s ease-out both;
}

/* Top accent gradient line */
.academia-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, #ecb236, transparent);
    opacity: 0.6;
}

/* Header */
.academia-login-header {
    text-align: center;
    margin-bottom: 3rem;
}

.academia-login-logo {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.academia-login-logo img {
    max-height: 100%;
    max-width: 70%;
    width: auto;
    object-fit: contain;
}

.academia-login-subtitle {
    font-size: 15px;
    font-weight: 300;
    color: #d3c4ae;
    margin-top: 0.5rem;
}

/* Form */
.academia-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.academia-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.academia-form-label {
    font-size: 14px;
    font-weight: 600;
    color: #e2e1f4;
    letter-spacing: 0.025em;
}

.academia-input-wrapper {
    position: relative;
}

.academia-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #d3c4ae;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.academia-input-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.academia-form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: #0c0d1a;
    color: #e2e1f4;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.academia-form-input::placeholder {
    color: rgba(226, 225, 244, 0.4);
}

.academia-form-input:focus {
    border-color: #91d0df;
    box-shadow: 0 0 0 2px rgba(145, 208, 223, 0.2);
}

.academia-form-input:focus + .academia-input-icon,
.academia-input-wrapper:focus-within .academia-input-icon {
    color: #91d0df;
}

.academia-form-input--password {
    padding-right: 3rem;
}

/* Password toggle */
.academia-password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #d3c4ae;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: color 0.2s;
}

.academia-password-toggle:hover {
    color: #e2e1f4;
}

.academia-password-toggle svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Forgot password link */
.academia-forgot-link {
    color: #91d0df;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    line-height: inherit;
}

.academia-forgot-link:hover {
    color: #b5dcff;
}

.academia-password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.academia-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #ecb236;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
    margin-top: 0.75rem;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    line-height: inherit;
}

.academia-back-link:hover {
    color: #f5d77b;
}

.academia-back-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.academia-success-message {
    background-color: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #166534;
    padding: 0.875rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Hidden state */
.academia-hidden {
    display: none;
}

/* Submit button */
.academia-submit-wrapper {
    margin-top: 1rem;
}

.academia-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    border: none;
    background-color: #ecb236;
    color: #634600;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.academia-submit-btn:hover {
    opacity: 0.9;
}

.academia-submit-btn:active {
    transform: scale(0.98);
}

.academia-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.academia-submit-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Spinner */
.academia-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: academiaSpin 0.8s linear infinite;
}

/* Error message */
.academia-error-message {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    padding: 0.875rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Animations */
@keyframes academiaFadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes academiaSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Desktop layout */
@media (min-width: 1024px) {
    .academia-login-container {
        flex-direction: row;
        min-height: 100vh;
    }

    .academia-login-hero {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 50%;
        padding: 4rem 4rem 4rem 5rem;
        animation: academiaFadeInUp 0.5s ease-out 0.15s both;
    }

    .academia-login-hero h1 {
        font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
        color: #e2e1f4;
        font-size: 74px;
        font-weight: 750;
        line-height: 1;
        letter-spacing: -0.03em;
        margin-bottom: 2rem;
        text-align: center;
    }

    .academia-login-hero h1 span {
        color: #ecb236;
    }

    .academia-login-hero p {
        font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
        color: rgba(226, 222, 217, 0.9);
        font-size: 21px;
        font-weight: 500;
        line-height: 1.3;
        text-align: center;
    }

    .academia-login-form-wrapper {
        width: 50%;
        padding: 2rem 4rem;
    }
}
