/* ReclutaFacile Registration System Styles */

/* Container */
.rf-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

/* Card */
.rf-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px;
    max-width: 480px;
    width: 100%;
}

/* Logo */
.rf-logo-wrap {
    text-align: center;
    margin-bottom: 24px;
}
.rf-logo {
    max-height: 60px;
    width: auto;
}

/* Titles */
.rf-title {
    text-align: center;
    color: #1a1a2e;
    font-size: 24px;
    margin: 0 0 8px;
    font-weight: 700;
}
.rf-subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 24px;
}

/* Form */
.rf-form {
    margin: 0;
}
.rf-field {
    margin-bottom: 20px;
}
.rf-field label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-size: 14px;
}
.rf-field input[type="text"],
.rf-field input[type="email"],
.rf-field input[type="password"],
.rf-field input[type="tel"],
.rf-field input[type="url"],
.rf-field select,
.rf-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    font-family: inherit;
}
.rf-field input:focus,
.rf-field select:focus,
.rf-field textarea:focus {
    border-color: #0066cc;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}
.rf-input-disabled {
    background: #f5f5f5 !important;
    color: #888 !important;
}
.rf-field small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 4px;
}

/* Buttons */
.rf-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}
.rf-btn-primary {
    background: linear-gradient(135deg, #0066cc, #0099ff);
    color: #ffffff;
}
.rf-btn-primary:hover {
    background: linear-gradient(135deg, #0055aa, #0088ee);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}
.rf-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Links */
.rf-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #666;
}
.rf-link a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}
.rf-link a:hover {
    text-decoration: underline;
}

/* Messages */
.rf-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}
.rf-success {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
}
.rf-error {
    background: #fce4ec;
    border: 1px solid #e53935;
    color: #c62828;
}

/* Password Hints */
.rf-password-hints {
    margin-top: 8px;
}
.rf-hint {
    font-size: 12px;
    color: #999;
    padding: 2px 0;
    transition: color 0.3s;
}
.rf-hint-ok {
    color: #27ae60 !important;
    font-weight: 600;
}

/* Strength Bar */
.rf-strength-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}
.rf-strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s;
    border-radius: 2px;
}
.rf-strength-text {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 600;
}

/* ============ DASHBOARD ============ */
.rf-dashboard-container {
    display: flex;
    min-height: 70vh;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.rf-dashboard-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 30px 0;
    flex-shrink: 0;
}

.rf-dashboard-user {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.rf-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc, #0099ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 10px;
}

.rf-company-logo-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    display: block;
}

.rf-user-info {
    font-size: 14px;
}
.rf-user-info strong {
    display: block;
    margin-bottom: 4px;
}

.rf-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.rf-badge-azienda {
    background: #ff9800;
    color: #fff;
}
.rf-badge-candidato {
    background: #4caf50;
    color: #fff;
}

.rf-dashboard-nav {
    padding: 20px 0;
}
.rf-dashboard-nav a {
    display: block;
    padding: 12px 24px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.rf-dashboard-nav a:hover,
.rf-dashboard-nav a.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-left-color: #0099ff;
}
.rf-dashboard-nav a.rf-logout {
    color: rgba(255,255,255,0.4);
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}
.rf-dashboard-nav a.rf-logout:hover {
    color: #e74c3c;
}

.rf-dashboard-content {
    flex: 1;
    padding: 40px;
}
.rf-dashboard-content h2 {
    color: #1a1a2e;
    margin: 0 0 24px;
    font-size: 22px;
}
.rf-dashboard-content h3 {
    color: #333;
    margin: 24px 0 12px;
    font-size: 18px;
}

.rf-empty-state {
    color: #999;
    font-style: italic;
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
}

.rf-current-logo {
    text-align: center;
    margin-bottom: 24px;
}
.rf-current-logo img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .rf-dashboard-container {
        flex-direction: column;
    }
    .rf-dashboard-sidebar {
        width: 100%;
    }
    .rf-dashboard-content {
        padding: 20px;
    }
    .rf-card {
        padding: 24px;
    }
}
