/* Register Page Styles */

:root {
    --primary-blue: #1e40af;
    --primary-red: #dc2626;
    --dark: #0f172a;
    --dark-gray: #1e293b;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;

    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-primary);
    min-height: 100vh;
    padding: 2rem;
}

.register-container {
    max-width: 700px;
    margin: 0 auto;
}

.register-box {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.register-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.back-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    opacity: 0.9;
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-3px);
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.register-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.register-header p {
    opacity: 0.95;
}

/* Success Message */
.success-message {
    padding: 3rem 2rem;
    text-align: center;
    background: #d1fae5;
    color: var(--success);
}

.success-message i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-message h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Form */
.register-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-gray);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    font-size: 1.125rem;
}

.form-section h3 i {
    color: var(--primary-blue);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.form-group input {
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group small {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray);
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary-blue);
}

.checkbox-group {
    margin-bottom: 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-label span {
    flex: 1;
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary-blue);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.error-message {
    background: #fee2e2;
    color: var(--danger);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: none;
}

.error-message.active {
    display: block;
}

.form-actions {
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.register-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    background: var(--light-gray);
    color: var(--gray);
}

.register-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.register-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .register-header {
        padding: 1.5rem;
    }

    .back-link {
        position: static;
        display: inline-flex;
        margin-bottom: 1rem;
    }

    .logo {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .register-header h1 {
        font-size: 1.5rem;
    }

    .register-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Loading State */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary:disabled:hover {
    transform: none;
}
