/* Page Content */
.page-content-wrapper {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    padding: 60px 20px;
    animation: fadeInUp 0.8s ease-out both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Alert Message */
.alert-message {
    display: none;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 500;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.4s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-message.show {
    display: flex;
}

.alert-message.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-message.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-message.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Register Container */
.register-container {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
}

/* Logo Section */
.register-logo {
    text-align: center;
    margin-bottom: 35px;
    animation: fadeIn 0.6s ease-out backwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.logo-image {
    width: 110px;
    height: auto;
    margin-bottom: 22px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.register-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.register-subtitle {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

/* Form Styles */
.register-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-label i {
    color: #667eea;
    font-size: 13px;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: #1f2937;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.08);
    transform: translateY(-1px);
}

.form-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-input.success {
    border-color: #10b981;
    background: #f0fdf4;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 7px 9px;
    transition: all 0.3s ease;
    font-size: 13px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.password-toggle:hover {
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
    transform: translateY(-50%) scale(1.05);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 10px;
    display: none;
}

.password-strength.show {
    display: block;
}

.strength-bar {
    width: 100%;
    height: 5px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 7px;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: all 0.4s ease;
    border-radius: 3px;
}

.strength-bar-fill.weak {
    width: 33%;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.strength-bar-fill.medium {
    width: 66%;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.strength-bar-fill.strong {
    width: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.strength-text {
    font-size: 12px;
    font-weight: 600;
}

.strength-text.weak {
    color: #ef4444;
}

.strength-text.medium {
    color: #f59e0b;
}

.strength-text.strong {
    color: #10b981;
}

/* Form Error */
.form-error {
    display: block;
    color: #ef4444;
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
    margin-left: 4px;
    min-height: 18px;
}

/* Custom Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: white;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 11px;
}

.checkbox-text {
    font-size: 13px;
    color: #4b5563;
    font-weight: 500;
    line-height: 1.5;
}

.terms-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.terms-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3c8f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loader {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loader {
    display: inline-block;
}

/* Social Divider */
.social-divider {
    position: relative;
    text-align: center;
    margin: 30px 0 26px;
}

.social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb 50%, transparent);
}

.social-divider span {
    position: relative;
    background: white;
    padding: 0 16px;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}

/* Social Buttons */
.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 26px;
}

.btn-social {
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid #e5e7eb;
    background: white;
    text-decoration: none;
}

.btn-google {
    color: #ea4335;
}

.btn-google:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ea4335;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.2);
}

.btn-facebook {
    color: #1877f2;
}

.btn-facebook:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #1877f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2);
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
}

.form-footer p {
    font-size: 14px;
    color: #6b7280;
}

.signin-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.signin-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-content-wrapper {
        padding: 40px 20px;
    }

    .register-container {
        padding: 35px 30px;
    }

    .register-title {
        font-size: 26px;
    }

    .logo-image {
        width: 100px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .page-content-wrapper {
        padding: 30px 15px;
    }

    .register-container {
        padding: 30px 24px;
        border-radius: 12px;
    }

    .register-title {
        font-size: 24px;
    }

    .register-subtitle {
        font-size: 13px;
    }

    .logo-image {
        width: 90px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }

    .form-input {
        font-size: 14px;
        padding: 12px 15px;
    }
}
