/* ===== PALETA CRC LOGIN ===== */
/* Cores: Azul Escuro #1B4C72 e Dourado #C9A760 */

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

.crc-login-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    background: #f5f7fa;
}

.crc-login-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Decorativo */
.crc-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1B4C72 0%, #2d5a8c 50%, #1B4C72 100%);
    opacity: 0.95;
    z-index: -1;
}

.crc-bg-decoration::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(201, 167, 96, 0.1);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.crc-bg-decoration::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(201, 167, 96, 0.08);
    border-radius: 50%;
    bottom: -100px;
    left: -50px;
}

/* Container Principal */
.crc-login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 90%;
    max-width: 1000px;
    height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideIn 0.6s ease-out;
}

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

/* Left Side - Branding */
.crc-login-branding {
    background: linear-gradient(135deg, #1B4C72 0%, #2d5a8c 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

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

.crc-branding-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.crc-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: fadeIn 0.8s ease-out;
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.crc-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.crc-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    font-weight: 500;
}

.crc-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.crc-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.crc-feature-item i {
    color: #C9A760;
    font-size: 1.2rem;
    min-width: 20px;
}

/* Right Side - Form */
.crc-login-form-container {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fafbfc;
}

.crc-login-card {
    width: 100%;
}

.crc-login-header {
    margin-bottom: 2rem;
}

.crc-login-header h2 {
    font-size: 1.75rem;
    color: #1B4C72;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.crc-login-header p {
    color: #999;
    font-size: 0.95rem;
}

.crc-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.crc-form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1B4C72;
    display: flex;
    align-items: center;
    margin: 0;
}

.crc-form-label i {
    color: #C9A760;
}

.crc-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.crc-form-control {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.crc-form-control::placeholder {
    color: #bbb;
}

.crc-form-control:focus {
    border-color: #C9A760;
    box-shadow: 0 0 0 3px rgba(201, 167, 96, 0.1);
    outline: none;
}

.crc-input-icon {
    position: absolute;
    left: 0.75rem;
    color: #C9A760;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crc-input-icon.toggle-password {
    cursor: pointer;
    right: 0.75rem;
    left: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.crc-input-icon.toggle-password:hover {
    opacity: 1;
}

.crc-login-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #1B4C72 0%, #2d5a8c 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(27, 76, 114, 0.3);
    position: relative;
    overflow: hidden;
}

.crc-login-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 167, 96, 0.3), transparent);
    transition: left 0.5s ease;
}

.crc-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 76, 114, 0.4);
}

.crc-login-btn:hover:before {
    left: 100%;
}

.crc-login-btn:active {
    transform: translateY(0);
}

.crc-login-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Responsividade */
@media (max-width: 1024px) {
    .crc-login-container {
        grid-template-columns: 1fr;
        height: auto;
        max-width: 500px;
    }

    .crc-login-branding {
        padding: 2rem;
        min-height: 250px;
    }

    .crc-title {
        font-size: 1.5rem;
    }

    .crc-features {
        margin-top: 1.5rem;
        gap: 0.75rem;
    }

    .crc-login-form-container {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .crc-login-wrapper {
        padding: 1rem;
    }

    .crc-login-container {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .crc-title {
        font-size: 1.25rem;
    }

    .crc-subtitle {
        font-size: 0.9rem;
    }

    .crc-login-header h2 {
        font-size: 1.5rem;
    }

    .crc-form-control {
        font-size: 0.9rem;
        padding: 0.65rem 1rem 0.65rem 2.3rem;
    }

    .crc-login-btn {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}
