/* ===========================
   Registration Page Styles
   =========================== */

/* Override body background for registration page */
body {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

.register-container {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
    margin: 20px 0;
}

/* Logo container */
.logo-container {
    background: var(--color-dark);
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.logo-container img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
}

/* Page header */
h1 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 28px;
    text-align: center;
}

.subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 14px;
    text-align: center;
}

/* Welcome section */
.welcome-section {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    border-radius: 12px;
}

.welcome-section h2 {
    color: var(--color-primary);
    font-size: 16px;
    margin-bottom: 12px;
}

.welcome-section p {
    color: var(--text-medium);
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 14px;
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
    margin-bottom: 20px;
}

/* Field error message */
.field-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: -15px;
    margin-bottom: 15px;
    font-weight: 500;
}

input:focus,
textarea:focus {
    box-shadow: var(--shadow-focus);
}

textarea {
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    line-height: 1.5;
}

/* Required field indicator */
.required {
    color: #c33;
    font-weight: bold;
}

/* Password field wrapper */
.password-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.password-wrapper input {
    margin-bottom: 0;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.toggle-password:hover {
    opacity: 0.7;
}

/* Radio button group */
.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.radio-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-option input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.radio-option label {
    margin: 0;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-dark);
}

/* Hidden field */
.hidden {
    display: none;
}

/* Checkbox wrapper */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px;
    background: #fff8e1;
    border-radius: 8px;
    border: 1px solid #ffd54f;
}

.checkbox-wrapper input[type="checkbox"] {
    margin: 4px 0 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--color-primary);
}

.checkbox-wrapper label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Button styling */
button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 15px;
}

button:hover {
    box-shadow: var(--shadow-button);
}

button:active {
    transform: translateY(0);
}

/* Login link */
.login-text {
    text-align: center;
    margin-top: 15px;
    color: var(--text-light);
    font-size: 14px;
}

.login-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.login-link:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .register-container {
        padding: 30px 20px;
    }

    .logo-container {
        padding: 8px;
        margin-bottom: 15px;
    }

    .logo-container img {
        max-height: 60px;
    }

    .radio-group {
        flex-direction: column;
        gap: 12px;
    }

    h1 {
        font-size: 24px;
    }

    .welcome-section {
        padding: 15px;
    }

    .welcome-section h2 {
        font-size: 15px;
    }

    .welcome-section p {
        font-size: 13px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .register-container {
        padding: 20px 15px;
    }

    .logo-container img {
        max-height: 50px;
    }

    h1 {
        font-size: 20px;
    }

    .subtitle {
        font-size: 13px;
    }

    input,
    textarea,
    button {
        font-size: 14px;
    }
}