:root {
    --primary-color: #2b3551;
    --primary-dark: #3a2b51;
    --primary-gradient: linear-gradient(135deg, #2b3551 0%, #3a2b51 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;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.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) {
        * {
          box-sizing: border-box;
          margin: 0;
          padding: 0;
          -webkit-tap-highlight-color: transparent;
        }

        body {
          font-family: 'Inter', system-ui, -apple-system, sans-serif;
          background-color: var(--bg-color);
          background-image: url('/assets/img/icetran.png');
          background-size: cover;
          background-position: center;
          background-repeat: no-repeat;
          min-height: 100vh;
          display: flex;
          flex-direction: column;
          color: var(--text-color);
          -webkit-font-smoothing: antialiased;
        }

        .login-wrapper {
          flex: 1;
          display: flex;
          flex-direction: column;
          justify-content: flex-start;
          align-items: center;
          padding: 24px 16px 16px;
          background: linear-gradient(135deg, rgba(244, 246, 248, 0.92) 0%, rgba(224, 228, 232, 0.92) 100%);
        }

        .login-container {
          width: 100%;
          max-width: 440px;
          display: flex;
          flex-direction: column;
          border-radius: 12px;
          overflow: hidden;
          box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
          animation: fadeIn 0.5s ease-out;
        }

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

        .login-form-section {
          background: var(--card-bg);
          padding: 32px 28px 28px;
        }

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

        .login-title {
          font-size: 1.5rem;
          font-weight: 700;
          color: var(--text-color);
          margin-bottom: 6px;
        }

        .login-subtitle {
          font-size: 0.9rem;
          color: var(--text-muted);
          margin-bottom: 24px;
        }

        .alert {
          padding: 13px 14px;
          margin-bottom: 18px;
          border-radius: var(--radius);
          font-size: 0.875rem;
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 10px;
        }

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

        .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.1rem;
          color: inherit;
          opacity: 0.6;
          text-decoration: none;
          flex-shrink: 0;
        }

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

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

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

        .input-wrapper { 
          position: relative; 
        }

        .form-control {
          width: 100%;
          height: 52px;
          padding: 0 16px;
          border: 1px solid var(--input-border);
          border-radius: var(--radius);
          font-size: 16px;
          font-family: inherit;
          color: var(--text-color);
          background: #fff;
          transition: border-color 0.2s, box-shadow 0.2s;
        }
        .form-control:focus {
          border-color: var(--input-focus);
          box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.12);
          outline: none;
        }

        .form-control::placeholder { 
          color: #b0bec5; 
        }

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

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

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

        .btn-submit {
          width: 100%;
          height: 52px;
          background-color: #1e293b;
          color: #fff;
          border: none;
          border-radius: var(--radius);
          font-size: 0.95rem;
          font-weight: 600;
          font-family: inherit;
          cursor: pointer;
          letter-spacing: 0.5px;
          text-transform: uppercase;
          transition: background-color 0.2s, transform 0.1s;
        }

        .btn-submit:active {
          background-color: #000;
          transform: scale(0.98);
        }

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

        .login-carousel-section {
          background: var(--primary-gradient);
          padding: 32px 28px 28px;
          color: #fff;
          position: relative;
          overflow: hidden;
        }

        .login-carousel-section::before {
          content: '';
          position: absolute;
          top: -60px; right: -60px;
          width: 220px; height: 220px;
          background: rgba(255,255,255,0.08);
          border-radius: 50%;
          pointer-events: none;
        }

        .login-carousel-section::after {
          content: '';
          position: absolute;
          bottom: -80px; left: -40px;
          width: 280px; height: 280px;
          background: rgba(255,255,255,0.05);
          border-radius: 50%;
          pointer-events: none;
        }

        .carousel-slides {
          position: relative;
          min-height: 180px;
        }

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

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

        .brand-icon {
          width: 52px; height: 52px;
          border-radius: 14px;
          background: rgba(255,255,255,0.15);
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 22px;
          margin-bottom: 14px;
          position: relative;
          z-index: 1;
        }

        .brand-title {
          font-size: 1.3rem;
          font-weight: 700;
          color: #fff;
          margin-bottom: 10px;
          line-height: 1.3;
          position: relative;
          z-index: 1;
        }

        .brand-description {
          font-size: 0.95rem;
          line-height: 1.6;
          color: rgba(255,255,255,0.88);
          position: relative;
          z-index: 1;
        }

        .carousel-indicators {
          display: flex;
          gap: 8px;
          margin-top: 22px;
          position: relative;
          z-index: 1;
        }

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

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

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

        .login-footer img {
          height: 26px;
          opacity: 0.7;
          margin-bottom: 6px;
          display: block;
          margin-left: auto;
          margin-right: auto;
        }
}

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

    .login-left, .login-right {
        padding: 40px 30px;
    }
}