/* Hero Section */
.register-hero {
    background: linear-gradient(135deg, #2E5984, #1976D2);
    padding: 80px 0 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.register-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Lato', sans-serif;
}

.hero-content h1 i {
    color: #4CAF50;
    margin-right: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Registration Form Section */
.register-form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    min-height: calc(100vh - 200px);
}

.register-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.register-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 900px;
    width: 100%;
    border: 1px solid #e9ecef;
}

/* Register Header */
.register-header {
    text-align: center;
    margin-bottom: 40px;
}

.register-icon {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
}

.register-header h2 {
    font-size: 2rem;
    color: #2E5984;
    margin-bottom: 10px;
    font-weight: 700;
}

.register-header p {
    color: #666;
    font-size: 1rem;
}

/* Messages */
.messages-container {
    margin-bottom: 30px;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.alert i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.alert-success {
    background: #e8f5e8;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

/* Form Errors */
.form-errors {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.error-header {
    display: flex;
    align-items: center;
    color: #c62828;
    font-weight: 600;
    margin-bottom: 10px;
}

.error-header i {
    margin-right: 8px;
}

.error-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-list li {
    color: #c62828;
    padding: 5px 0;
    padding-left: 20px;
}

.error-list li::before {
    content: "•";
    color: #f44336;
    margin-right: 8px;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    color: #2E5984;
    margin-bottom: 25px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.section-title i {
    margin-right: 10px;
    color: #4CAF50;
    font-size: 1.4rem;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.form-row.full-width {
    grid-template-columns: 1fr;
}

.form-row:last-child {
    margin-bottom: 0;
}

/* Form Groups */
.form-group {
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2E5984;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group label i {
    margin-right: 8px;
    color: #4CAF50;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 50px 15px 45px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: 'Lato', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    background: white;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #666;
    font-size: 1rem;
    z-index: 2;
}

.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: color 0.3s ease;
    z-index: 3;
}

.password-toggle:hover {
    color: #4CAF50;
}

.help-text {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    padding-left: 45px;
}

/* User Type Indicators */
.user-type-group {
    position: relative;
}

.user-type-indicators {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    gap: 15px;
}

.type-indicator {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
    opacity: 0.6;
}

.type-indicator.active {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    opacity: 1;
    transform: translateY(-2px);
}

.type-indicator i {
    font-size: 1.5rem;
    color: #2E5984;
    margin-bottom: 8px;
    display: block;
}

.type-indicator span {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.type-indicator.active i {
    color: #4CAF50;
}

.type-indicator.active span {
    color: #2E5984;
    font-weight: 600;
}

/* Terms and Conditions */
.terms-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #4CAF50;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.terms-checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 2px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.terms-checkbox input:checked + .checkmark {
    background: #4CAF50;
    border-color: #4CAF50;
}

.terms-checkbox input:checked + .checkmark::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
}

.terms-text {
    flex: 1;
}

.terms-link {
    color: #2E5984;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: #4CAF50;
    text-decoration: none;
}

.terms-link i {
    margin-left: 5px;
    font-size: 0.8rem;
}

/* Submit Button */
.form-submit {
    margin-bottom: 30px;
}

.register-btn {
    width: 100%;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Lato', sans-serif;
}

.register-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #45a049, #5cb85c);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

.register-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.register-btn i {
    font-size: 1.2rem;
}

/* Links */
.login-link,
.portal-link {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
}

.login-link {
    margin-bottom: 10px;
}

.login-link p,
.portal-link p {
    margin: 0;
    color: #666;
}

.login-link a,
.portal-link a {
    color: #2E5984;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover,
.portal-link a:hover {
    color: #4CAF50;
    text-decoration: none;
}

.login-link a i,
.portal-link a i {
    margin-right: 5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .register-card {
        padding: 40px 35px;
    }
    
    .form-row {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .register-form-section {
        padding: 40px 0;
    }
    
    .register-card {
        padding: 30px 25px;
        margin: 20px 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .user-type-indicators {
        flex-direction: column;
        gap: 10px;
    }
    
    .type-indicator {
        padding: 12px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px 45px 12px 40px;
    }
    
    .help-text {
        padding-left: 40px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .register-card {
        padding: 25px 20px;
    }
    
    .register-header h2 {
        font-size: 1.5rem;
    }
    
    .register-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .user-type-indicators {
        gap: 8px;
    }
    
    .type-indicator {
        padding: 10px 8px;
    }
    
    .type-indicator i {
        font-size: 1.2rem;
    }
    
    .type-indicator span {
        font-size: 0.8rem;
    }
    
    .terms-container {
        padding: 15px;
    }
    
    .checkmark {
        width: 18px;
        height: 18px;
    }
}


/* File Input Styling */
.file-input-wrapper {
    position: relative;
    overflow: hidden;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.file-label {
    display: block;
    padding: 15px 50px 15px 45px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #666;
    text-align: left;
}

.file-input-wrapper:hover .file-label {
    border-color: #4CAF50;
    background: white;
}

.file-input-wrapper .file-label:focus {
    outline: none;
    border-color: #4CAF50;
    background: white;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}