@import url('theme-senac.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

:root {
    --reg-primary: var(--senac-blue);
    --reg-primary-dark: var(--senac-blue-dark);
    --reg-accent: var(--senac-orange);
    --reg-card-bg: #ffffff;
    --reg-text: #2c3e50;
    --reg-text-light: #6c757d;
    --reg-border: rgba(0, 74, 141, 0.12);
}

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;
}

.register-container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.register-card {
    background: var(--reg-card-bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 12px 36px rgba(0, 58, 109, 0.12);
    border-top: 6px solid var(--reg-primary);
}

.register-header {
    text-align: center;
    margin-bottom: 32px;
}

.register-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.register-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--reg-primary);
    margin: 0 0 12px 0;
}

.register-subtitle {
    font-size: 0.95rem;
    color: var(--reg-text-light);
    margin: 0;
    line-height: 1.5;
}

.register-fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.register-legend {
    display: none;
}

.register-field-group {
    margin-bottom: 24px;
}

.register-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--reg-text);
    margin-bottom: 8px;
}

.register-input {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    font-size: 1rem;
    color: var(--reg-text);
    background: #fafbfc;
    border: 2px solid var(--reg-border);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.password-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-toggle {
    height: 56px;
    flex: 0 0 auto;
    border: 1px solid var(--reg-border);
    background: #ffffff;
    color: var(--reg-primary);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    background: #f3f8ff;
}

.password-toggle:focus-visible {
    outline: 3px solid rgba(0, 74, 141, 0.25);
    outline-offset: 2px;
}

.register-input:focus {
    border-color: var(--reg-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 74, 141, 0.08);
}

.register-validation {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 6px;
    font-weight: 600;
}

.register-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;
    display: block;
    font-weight: 600;
}

.success-message {
    background: linear-gradient(135deg, #eff, #efe);
    border-left: 4px solid #28a745;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    color: #155724;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 600;
    text-align: center;
}

.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(--reg-accent);
}

.password-strength-bar.strong {
    width: 100%;
    background: #28a745;
}

.password-strength-text {
    display: block;
    font-size: 0.875rem;
    margin-top: 4px;
    font-weight: 600;
}

.password-requirements {
    background: #f5f5f5;
    border-left: 4px solid #ff9800;
    padding: 15px;
    margin-bottom: 20px;
    margin-top: 20px;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

.password-requirements h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.requirement {
    margin: 5px 0;
    padding-left: 20px;
    position: relative;
}

.requirement:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ccc;
}

.requirement.valid:before {
    color: #4CAF50;
}

.register-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.register-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;
}

.register-btn-cancel {
    background: transparent;
    color: var(--reg-text-light);
    border: 2px solid var(--reg-border);
}

.register-btn-cancel:hover {
    background: #f8f9fa;
    border-color: var(--reg-primary);
    color: var(--reg-primary);
}

.register-btn-submit {
    background: linear-gradient(135deg, var(--reg-primary-dark), var(--reg-primary));
    color: white;
    box-shadow: 0 8px 20px rgba(0, 74, 141, 0.24);
}

.register-btn-submit:hover {
    background: linear-gradient(135deg, var(--reg-accent), #ff8c42);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(247, 148, 29, 0.32);
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.login-link a {
    color: var(--reg-primary);
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .register-card {
        padding: 32px 24px;
    }

    .register-buttons {
        flex-direction: column;
    }

    .password-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .password-toggle {
        height: 44px;
    }
}
