/* ========== CSS VARIABLES - HWS DESIGN SYSTEM ========== */
:root {
    /* Cores Primárias */
    --hws-blue-50: #EFF6FF;
    --hws-blue-100: #DBEAFE;
    --hws-blue-200: #BFDBFE;
    --hws-blue-500: #2563EB;
    --hws-blue-600: #1D4ED8;
    --hws-blue-700: #1E40AF;
    
    /* Cores Secundárias */
    --hws-green-50: #ECFDF5;
    --hws-green-500: #10B981;
    --hws-green-600: #059669;
    
    /* Escala de Cinza */
    --hws-gray-50: #FAFAF9;
    --hws-gray-100: #F5F5F4;
    --hws-gray-200: #E7E5E4;
    --hws-gray-300: #D6D3D1;
    --hws-gray-500: #78716C;
    --hws-gray-600: #57534E;
    --hws-gray-700: #44403C;
    --hws-gray-900: #1C1917;
    
    /* Tipografia */
    --font-primary: 'Inter', sans-serif;
    
    /* Espaçamento */
    --space-2: 8px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    
    /* Transições */
    --transition-normal: 300ms;
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--hws-blue-50) 0%, var(--hws-green-50) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    color: var(--hws-gray-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== LAYOUT PRINCIPAL ========== */
.register-container {
    width: 100%;
    max-width: 480px;
    animation: fadeInUp 0.6s var(--ease-out);
}

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

/* ========== CARD ========== */
.register-card {
    background: white;
    border-radius: 16px;
    padding: var(--space-8);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1), 
                0 4px 6px -2px rgba(37, 99, 235, 0.05);
}

/* ========== HEADER ========== */
.register-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.logo {
    width: 100px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1);
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.register-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--hws-gray-900);
    margin-bottom: var(--space-2);
    letter-spacing: -0.5px;
}

.register-subtitle {
    font-size: 16px;
    color: var(--hws-gray-600);
    line-height: 1.5;
}

/* ========== FORM ========== */
.register-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--hws-gray-700);
}

.form-input {
    padding: 12px 16px;
    border: 2px solid var(--hws-gray-200);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--hws-gray-900);
    transition: all var(--transition-normal) var(--ease-out);
}

.form-input:focus {
    outline: none;
    border-color: var(--hws-blue-500);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
    color: var(--hws-gray-500);
}

.password-hint {
    font-size: 13px;
    color: var(--hws-gray-500);
    margin-top: -8px;
}

.submit-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--hws-blue-500) 0%, var(--hws-green-500) 100%);
    color: white;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal) var(--ease-out);
    margin-top: var(--space-2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========== MESSAGES ========== */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s var(--ease-out);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #DC2626;
}

.success-message {
    background: #ECFDF5;
    border: 1px solid #86EFAC;
    color: #059669;
}

.message-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.hidden {
    display: none;
}

/* ========== FOOTER ========== */
.register-footer {
    margin-top: var(--space-6);
    text-align: center;
    font-size: 14px;
    color: var(--hws-gray-500);
}

.register-footer a {
    color: var(--hws-blue-600);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-normal) var(--ease-out);
}

.register-footer a:hover {
    color: var(--hws-blue-700);
    text-decoration: underline;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .register-card {
        padding: var(--space-6);
    }

    .register-title {
        font-size: 22px;
    }

    .register-subtitle {
        font-size: 15px;
    }
}

