﻿/* ========================================
   TELA DE LOGIN - PW MÍDIA
   Design com imagem de fundo
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    height: 100vh;
    background: url('/images/bg-pwmidia.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Container principal - Tela cheia com imagem */
.login-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
    justify-content: flex-end;
    align-items: center;
}

/* ========================================
   LADO ESQUERDO - Oculto (mantido para estrutura)
   ======================================== */
.login-left {
    flex: 1;
    position: relative;
    display: none;
}

.dna-decoration,
.dna-circle,
.watermark-text {
    display: none;
}

/* ========================================
   LADO DIREITO - Formulário de Login
   ======================================== */
.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    margin-right: 8%;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 0;
}

/* Logo e Título */
.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 8px;
}

.logo-subtitle {
    color: #ffffff;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 300;
    margin-top: 5px;
    text-align: right;
}

/* Formulário */
.login-form {
    margin-bottom: 80px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.98);
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
}

.form-control::placeholder {
    color: #999;
}

/* Ações do formulário */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.forgot-password {
    color: #ffffff;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #ff4500;
    text-decoration: none;
}

.btn-entrar {
    background-color: #ff4500;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 11px 35px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-entrar:hover {
    background-color: #ff5722;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4);
}

.btn-entrar:active {
    transform: translateY(0);
}

/* Footer Info */
.footer-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

.divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.98);
    margin: 0 0 20px 0;
}

.copyright {
    font-size: 11px;
    margin-bottom: 12px;
}

.developed-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    opacity: 0.9;
}

/* Mensagens de erro */
.text-danger {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.alert-danger {
    background-color: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: #ffffff;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
}

/* Modal de recuperação de senha */
.modal-content {
    border-radius: 15px;
    border: none;
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    color: #ffffff;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: #ffffff;
    font-size: 18px;
}

.btn-close {
    filter: invert(1);
}

.btn-recuperacao-senha {
    background-color: #ff4500;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-recuperacao-senha:hover {
    background-color: #ff5722;
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

/* Telas ultra-wide (> 1920px) */
@media (min-width: 1921px) {
    .login-right {
        max-width: 700px;
        margin-right: 10%;
    }

    .login-container {
        max-width: 480px;
    }

    .logo {
        max-width: 200px;
    }

    .form-control {
        padding: 16px 22px;
        font-size: 15px;
    }

    .btn-entrar {
        padding: 13px 40px;
        font-size: 14px;
    }
}

/* Desktop padrão (1440px - 1920px) */
@media (min-width: 1440px) and (max-width: 1920px) {
    .login-right {
        max-width: 600px;
        margin-right: 8%;
    }
}

/* Desktop menor (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .login-right {
        max-width: 550px;
        margin-right: 6%;
    }
}

/* Tablet grande (993px - 1199px) */
@media (min-width: 993px) and (max-width: 1199px) {
    .login-right {
        max-width: 500px;
        margin-right: 5%;
    }

    .login-container {
        max-width: 400px;
    }
}

/* Tablet (769px - 992px) */
@media (max-width: 992px) {
    .login-wrapper {
        justify-content: center;
    }

    .login-right {
        padding: 40px 60px;
        margin-right: 0;
        max-width: 500px;
    }

    .logo-container {
        text-align: center;
    }

    .logo {
        max-width: 160px;
    }

    .logo-subtitle {
        text-align: center;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    body {
        background-position: center center;
    }

    .login-wrapper {
        justify-content: center;
    }

    .login-right {
        padding: 30px 20px;
        margin-right: 0;
        max-width: 100%;
    }

    .login-container {
        max-width: 100%;
        padding: 20px;
    }

    .logo-container {
        text-align: center;
        margin-bottom: 30px;
    }

    .logo {
        max-width: 140px;
    }

    .logo-subtitle {
        font-size: 9px;
        letter-spacing: 1.5px;
        text-align: center;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .forgot-password {
        text-align: center;
        order: 2;
        margin-top: 15px;
    }

    .btn-entrar {
        width: 100%;
        order: 1;
    }

    .login-form {
        margin-bottom: 40px;
    }
}

/* Mobile pequeno (< 480px) */
@media (max-width: 480px) {
    .login-right {
        padding: 20px 15px;
    }

    .login-container {
        padding: 15px;
    }

    .logo {
        max-width: 120px;
    }

    .logo-subtitle {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .form-control {
        padding: 12px 18px;
        font-size: 13px;
    }

    .btn-entrar {
        padding: 11px 30px;
        font-size: 13px;
    }

    .copyright,
    .developed-by {
        font-size: 10px;
    }

    .footer-logo {
        max-width: 90px;
    }

    .login-form {
        margin-bottom: 30px;
    }
}

/* Landscape em mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .login-right {
        padding: 20px 40px;
        overflow-y: auto;
    }

    .login-form {
        margin-bottom: 20px;
    }

    .logo {
        max-width: 100px;
    }

    .logo-subtitle {
        font-size: 8px;
    }
}
