﻿/* ========================================================================================
   CHANGE PASSWORD - PÁGINA STANDALONE
   Sistema Quadro Horário
   ======================================================================================== */
.main {
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    margin: 5px auto
}
/* ------------------------
   RESET E BASE
   ------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #f0f5fb 0%, #e3f2fd 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

form {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ------------------------
   VARIÁVEIS
   ------------------------ */
:root {
    --cp-primary: #004A8D;
    --cp-primary-dark: #003A6D;
    --cp-accent: #F7941D;
    --cp-card-bg: #ffffff;
    --cp-text: #2c3e50;
    --cp-text-light: #6c757d;
    --cp-border: rgba(0, 74, 141, 0.12);
}

/* ------------------------
   CONTAINER PRINCIPAL
   ------------------------ */
.change-password-container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

/* ------------------------
   CARD
   ------------------------ */
.change-password-card {
    background: var(--cp-card-bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 12px 36px rgba(0, 58, 109, 0.12);
    border-top: 6px solid var(--cp-primary);
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------
   HEADER
   ------------------------ */
.change-password-header {
    text-align: center;
    margin-bottom: 32px;
}

.change-password-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.change-password-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--cp-primary);
    margin: 0 0 12px 0;
}

.change-password-subtitle {
    font-size: 0.95rem;
    color: var(--cp-text-light);
    margin: 0;
    line-height: 1.5;
}

/* ------------------------
   FORMULÁRIO
   ------------------------ */
.change-password-fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.change-password-legend {
    display: none;
}

.change-password-field-group {
    margin-bottom: 24px;
}

.change-password-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cp-text);
    margin-bottom: 8px;
}

.change-password-input {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    font-size: 1rem;
    color: var(--cp-text);
    background: #fafbfc;
    border: 2px solid var(--cp-border);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.change-password-input::placeholder {
    color: #9ca3af;
}

.change-password-input:focus {
    border-color: var(--cp-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 74, 141, 0.08);
}

/* ------------------------
   VALIDAÇÃO
   ------------------------ */
.change-password-validation {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 6px;
    font-weight: 600;
}

.change-password-validation-summary {
    background: linear-gradient(135deg, #fee, #fdd);
    border-left: 4px solid #dc3545;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    color: #dc3545;
    font-size: 0.9rem;
}

/* ------------------------
   INDICADOR DE FORÇA
   ------------------------ */
.password-strength-indicator {
    margin-top: 8px;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 2px;
}

.password-strength-bar.weak {
    width: 33%;
    background: #dc3545;
}

.password-strength-bar.medium {
    width: 66%;
    background: var(--cp-accent);
}

.password-strength-bar.strong {
    width: 100%;
    background: #28a745;
}

.password-strength-text {
    display: block;
    font-size: 0.875rem;
    margin-top: 4px;
    font-weight: 600;
}

/* ------------------------
   BOTÕES
   ------------------------ */
.change-password-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.change-password-btn {
    flex: 1;
    height: 52px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.change-password-btn-cancel {
    background: transparent;
    color: var(--cp-text-light);
    border: 2px solid var(--cp-border);
}

.change-password-btn-cancel:hover {
    background: #f8f9fa;
    border-color: var(--cp-primary);
    color: var(--cp-primary);
}

.change-password-btn-submit {
    background: linear-gradient(135deg, var(--cp-primary-dark), var(--cp-primary));
    color: white;
    box-shadow: 0 8px 20px rgba(0, 74, 141, 0.24);
}

.change-password-btn-submit:hover {
    background: linear-gradient(135deg, var(--cp-accent), #ff8c42);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(247, 148, 29, 0.32);
}

/* ------------------------
   RESPONSIVIDADE
   ------------------------ */

@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .change-password-card {
        padding: 32px 24px;
    }

    .change-password-title {
        font-size: 1.5rem;
    }

    .change-password-buttons {
        flex-direction: column;
    }

    .change-password-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .change-password-card {
        padding: 24px 20px;
        border-radius: 8px;
    }

    .change-password-title {
        font-size: 1.3rem;
    }

    .change-password-input {
        height: 52px;
        font-size: 0.95rem;
    }

    .change-password-btn {
        height: 48px;
        font-size: 0.95rem;
    }
}