/* ========== RESET E ESTILOS GLOBAIS ========== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.35) 0%, rgba(45, 45, 45, 0.35) 100%), url('../images/fundo.png') center/cover no-repeat fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* ========== CONTAINER LOGIN ========== */
.login-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    border: 2px solid #FFD700;
}

/* ========== BANNER DENTRO DO CONTAINER ========== */
.banner-header {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.5) 0%, rgba(45, 45, 45, 0.5) 100%), url('../images/banner.png') center/cover no-repeat;
    padding: 25px 20px;
    text-align: center;
    border-bottom: 3px solid #FFD700;
}

.banner-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
}

.banner-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.8));
}

.banner-title {
    color: #FFD700;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin-bottom: 3px;
}

.banner-subtitle {
    color: #FFFFFF;
    font-size: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Marca UniGuardião padronizada */
.brand {
    font-weight: bold;
    font-size: 24px;
    letter-spacing: 1px;
}
.brand-uni {
    color: #FFFFFF;
}
.brand-guardiao {
    color: #FFD700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* ========== CONTEÚDO LOGIN ========== */
.login-content {
    padding: 40px;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    object-fit: contain;
}

.logo h1 {
    color: #1a1a1a;
    font-size: 28px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.logo p {
    color: #FFD700;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== FORMULÁRIO ========== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    background: #fffef5;
}

/* ========== BOTÃO LOGIN ========== */
.btn-login {
    width: 100%;
    padding: 13px;
    background: #FFD700;
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-login:hover {
    background: #FFC700;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

/* ========== MENSAGENS ========== */
.success {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    color: #2e7d32;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #4caf50;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
}

.error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #d32f2f;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
}

.security-note {
    background: #fff3e0;
    color: #e65100;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    margin-top: 15px;
    border-left: 4px solid #FF9800;
}

/* ========== PASSWORD TOGGLE ========== */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    flex: 1;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #999;
    padding: 5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.toggle-password:hover {
    color: #666;
}

.toggle-password:active {
    transform: scale(0.95);
}

/* ========== RESPONSIVO ========== */
@media (max-width: 600px) {
    body {
        padding: 12px;
        justify-content: flex-start;
        align-items: flex-start;
        overflow-y: auto;
        min-height: 100dvh;
    }

    .login-container {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .banner-header {
        padding: 18px 16px;
    }

    .banner-logo {
        width: 56px;
        height: 56px;
        margin-bottom: 8px;
    }

    .login-content {
        padding: 22px 16px 18px;
    }
    
    .banner-title {
        font-size: 18px;
    }
    
    .logo h1 {
        font-size: 24px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    input {
        padding: 11px 13px;
        font-size: 13px;
    }

    .btn-login {
        padding: 12px;
        font-size: 14px;
        margin-top: 2px;
    }

    .security-note {
        margin-top: 12px;
        padding: 9px;
        font-size: 11px;
    }

    .password-container .toggle-password {
        width: 26px;
        height: 26px;
        right: 10px;
        padding: 4px;
    }
}

@media (max-width: 420px), (max-height: 700px) {
    body {
        overflow-y: auto;
        align-items: flex-start;
    }

    .login-content {
        padding: 18px 14px 16px;
    }

    .banner-header {
        padding: 14px 14px 16px;
    }

    .banner-logo {
        width: 48px;
        height: 48px;
    }

    .banner-title {
        font-size: 17px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .btn-login {
        padding: 11px;
        font-size: 13px;
    }

    .security-note {
        margin-top: 10px;
    }
}
