:root {
    --primary-color: #15626e;
    --primary-dark: #094c5e;
    --primary-gradient: linear-gradient(135deg, #15626e 0%, #094c5e 100%);
    --text-color: #333;
    --text-muted: #666;
    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --input-border: #ddd;
    --input-focus: #4a90e2;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius: 8px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(244, 246, 248, 0.9) 0%, rgba(224, 228, 232, 0.9) 100%), url('../img/icetran.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.login-container {
    width: 100%;
    max-width: 1000px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
    display: flex;
    flex-direction: row;
    min-height: 600px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-left {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
}

.login-right {
    flex: 1;
    background: var(--primary-gradient);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.login-right::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.login-right::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -50px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.login-header {
    padding: 0;
    text-align: left;
    border-bottom: 0;
    background: transparent;
    margin-bottom: 10px;
}

.login-logo {
    display: block;
    max-height: 50px;
    width: auto;
    margin-bottom: 25px;
}

.login-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

.login-body {
    padding: 0;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: left;
    margin: 0 0 10px 0;
    color: #1e293b;
}

.form-group {
    margin-bottom: 10px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
}

.input-wrapper {
    position: relative;
}

#togglePassword {
    position: absolute;
    right: 14px;
    top: 45%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    font-size: 1rem;
}


#txt_usuario, #txt_senha, .form-control {
    width: 100%;
    height: 48px;
    padding: 10px 16px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
    line-height: normal;
}

#txt_usuario:focus, #txt_senha:focus, .form-control:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(145, 50, 222, 0.2);
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background-color: #000;
    transform: translateY(-1px);
}

.forgot-password {
    text-align: center;
    margin: 8px 0;
}

.forgot-password a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.forgot-password a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.alert-error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.alert .close {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    color: inherit;
    opacity: 0.7;
    text-decoration: none;
}

.alert .close:hover {
    opacity: 1;
}

.login-footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    background-color: var(--bg-color);
    font-size: 0.8rem;
    margin-top: auto;
}

.login-footer img {
    height: 30px;
    vertical-align: middle;
    margin-right: 10px;
    opacity: 0.8;
}

.login-footer-info {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.carousel-slides {
    position: relative;
    width: 100%;
    min-height: 250px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    transform: translateX(20px);
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.brand-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 28px;
}

.brand-title {
    font-size: 2rem;
    margin: 0 0 12px 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 1.0);
}

.brand-description {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.student-carousel-indicators {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.indicator.active {
    width: 26px;
    background: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-container {
        box-shadow: none;
        background: transparent;
        display: block;
        min-height: auto;
    }
    .login-header {
        background: transparent;
        border: none;
    }
    .login-body {
        background: var(--card-bg);
        border-radius: var(--radius);
        box-shadow: var(--shadow-md);
        padding: 30px 20px;
    }
}

@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        max-width: 520px;
        min-height: auto;
    }
    .login-right {
        padding: 40px 30px;
    }
    .login-left {
        padding: 40px 30px;
    }
}
