/* Registration Page Specific Styles */

/* Validation Error Summary Styles */
.validation-summary {
    display: none;
    background: #fff3f3;
    border: 2px solid #e74c3c;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.validation-summary.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.validation-summary h4 {
    color: #c0392b;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.validation-summary h4 i {
    font-size: 1.2rem;
}

.validation-summary ul {
    margin: 0;
    padding: 0 0 0 1.5rem;
    list-style-type: none;
}

.validation-summary li {
    color: #e74c3c;
    margin-bottom: 0.5rem;
    position: relative;
    line-height: 1.4;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.validation-summary li::before {
    content: "•";
    position: absolute;
    left: -1rem;
    color: #e74c3c;
}

.validation-summary li:hover {
    color: #c0392b;
    text-decoration: underline;
}

.validation-summary li:last-child {
    margin-bottom: 0;
}

/* Animation for error summary */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Highlighted field animation */
@keyframes highlightField {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.form-group.highlight-error input,
.form-group.highlight-error select,
.form-group.highlight-error textarea {
    animation: highlightField 0.4s ease-in-out;
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
}

.registration-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.registration-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.registration-hero .hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.registration-hero .hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.registration-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.registration-hero .hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.registration-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.registration-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
}

.registration-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.registration-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.registration-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.registration-form {
    padding: 3rem 2rem;
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f1f2f6;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.form-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3 i {
    color: #3498db;
    font-size: 1.3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Password input wrapper and toggle button styles */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    padding-right: 40px;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 5px;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #3498db;
}

.password-toggle:focus {
    outline: none;
    color: #3498db;
}

.password-toggle i {
    font-size: 1.1rem;
}

/* Small helper text for password fields */
.password-hint {
    display: block;
    color: #6c757d; /* subtle gray */
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e8ed;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #3498db;
    border-color: #3498db;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.checkbox-label a {
    color: #3498db;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f2f6;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-large i {
    font-size: 1rem;
}

.registration-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 2rem 2rem;
}


.info-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #3498db;
}

.info-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card h4 i {
    color: #3498db;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e1e8ed;
    position: relative;
    padding-left: 1.5rem;
}

.info-card ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.info-card ul li:last-child {
    border-bottom: none;
}

.info-card p {
    margin-bottom: 0.5rem;
    color: #555;
}

.info-card p strong {
    color: #2c3e50;
}

/* Loading Spinner */
.loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #3498db;
    font-weight: 600;
}

.loading.show {
    display: flex;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e8ed;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin-bottom: 2rem;
    display: none;
}

.success-message.show {
    display: block;
}

.success-message i {
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .registration-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .registration-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .registration-header {
        padding: 2rem 1.5rem;
    }
    
    .registration-header h2 {
        font-size: 2rem;
    }
    
    .registration-form {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    @media (min-width: 992px) {
    .registration-info {
        grid-template-columns: 1fr 1fr;
        width: 90%;
        padding: 3rem 3rem;
    }
}

}

@media (max-width: 480px) {
    .registration-hero {
        padding: 100px 0 60px;
    }
    
    .registration-hero .hero-title {
        font-size: 2rem;
    }
    
    .registration-header {
        padding: 1.5rem 1rem;
    }
    
    .registration-form {
        padding: 1.5rem 1rem;
    }
    
    .form-section h3 {
        font-size: 1.3rem;
    }
}
