/* Register Page Specific Styles */

/* Header Styles */
.register-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.register-header .header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 70px;
}

.logo {
    justify-self: start;
}

.nav-links {
    display: flex;
    gap: 32px;
    justify-self: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    width: auto;
    justify-content: center;
}

.nav-link:hover {
    color: #ff8c42;
    background: rgba(255, 140, 66, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: end;
}

.language-selector {
    position: relative;
    display: inline-block;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    justify-content: space-between;
}

.language-toggle:hover {
    background: #f8f8f8;
    border-color: #ff8c42;
}

.globe-icon {
    font-size: 16px;
    color: #666;
}

.chevron-icon {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.language-selector.open .chevron-icon {
    transform: rotate(180deg);
}

.current-lang {
    font-weight: 500;
    color: #333;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 4px;
}

.language-selector.open .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: #f8f8f8;
}

.language-option.active {
    background: #fff3e0;
    color: #ff8c42;
}

.lang-flag {
    font-size: 16px;
}

.lang-name {
    font-size: 14px;
    font-weight: 500;
}

.globe-icon {
    font-size: 16px;
}

.sign-in-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.sign-in-link:hover {
    color: #ff8c42;
}

.cta-button {
    background: #ff8c42;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

/* Main Content */
.register-main {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.register-container {
    width: 100%;
    max-width: 450px;
}

.register-card {
    background: white;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.register-header-section {
    margin-bottom: 40px;
}

.register-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.register-description {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.register-form {
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    color: #333;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none !important;
    border-color: #ff8c42 !important;
    box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.1) !important;
}

.form-input::placeholder {
    color: #999;
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    line-height: 1.4;
}

.form-options {
    margin-bottom: 20px;
    text-align: left;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    user-select: none;
    line-height: 1.4;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    margin-top: 2px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-container input[type="checkbox"]:checked+.checkmark {
    background: #ff8c42;
    border-color: #ff8c42;
}

.checkbox-container input[type="checkbox"]:checked+.checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container:hover .checkmark {
    border-color: #ff8c42;
}

.terms-link {
    color: #ff8c42;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: #e67e22;
    text-decoration: underline;
}

.register-button {
    width: 100%;
    background: #ff8c42;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.register-button:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 140, 66, 0.3);
}

.register-button:active {
    transform: translateY(0);
}

.register-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.register-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 24px;
}

.register-links {
    text-align: center;
}

.login-prompt {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px 0;
}

.login-link {
    color: #ff8c42;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #e67e22;
    text-decoration: underline;
}

.back-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #ff8c42;
}

/* Responsive Design */
@media (max-width: 768px) {
    .register-header .header-content {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 20px;
        justify-self: center;
    }

    .header-actions {
        gap: 16px;
        justify-self: center;
    }

    .register-main {
        padding: 20px;
    }

    .register-card {
        padding: 32px 24px;
    }

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

    .register-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .register-card {
        padding: 24px 20px;
    }

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

    .form-input {
        padding: 14px 16px;
    }

    .register-button {
        padding: 16px;
        font-size: 16px;
    }

    .checkbox-container {
        font-size: 13px;
    }
}

/* Animation Effects */
.register-card {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus States */
.register-button:focus {
    outline: 2px solid #ff8c42;
    outline-offset: 2px;
}

/* Loading State */
.register-button.loading {
    position: relative;
    color: transparent;
}

.register-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength.weak .password-strength-bar {
    width: 25%;
    background: #ff6b6b;
}

.password-strength.medium .password-strength-bar {
    width: 50%;
    background: #ffa726;
}

.password-strength.strong .password-strength-bar {
    width: 75%;
    background: #66bb6a;
}

.password-strength.very-strong .password-strength-bar {
    width: 100%;
    background: #4caf50;
}

/* Form Validation States */
.form-input.error:not(:focus) {
    border-color: #ff6b6b;
}

.form-input.success:not(:focus) {
    border-color: #4caf50;
}

.form-error {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 4px;
}

.form-success {
    color: #4caf50;
    font-size: 12px;
    margin-top: 4px;
}