/* Signup Page Styles */

/* Basic Variables */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #2c3e50;
    --background-color: #f5f6f8;
    --text-color: #2c3e50;
}

/* Basic CSS Reset */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: var(--background-color);
    color: var(--text-color);
}

/* Page Management */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Signup Container */
.signup-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f6f8;
    padding: 2rem;
}

.signup-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px;
    display: flex;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

/* Left Section - Branding */
.signup-left {
    flex: 0 0 40%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    position: relative;
    background-image: url('/images/OxsonaBranding/signup-bg.webp');
    background-size: cover;
    background-position: 65% center; /* 30% from left, centered vertically */
    background-repeat: no-repeat;
}

/* Right Section - Form */
.signup-right {
    flex: 0 0 60%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-logo-small {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.logo-image {
    height: 3.5rem;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.form-subtitle {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

/* Signup Form */
.signup-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
    font-size: 1rem;
    z-index: 2;
}

.input-wrapper input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.input-wrapper input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.input-wrapper input.error:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.input-wrapper input::placeholder {
    color: #bdc3c7;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #bdc3c7;
    cursor: pointer;
    font-size: 1rem;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Password Requirements */
.password-requirements {
    margin-top: 0.5rem;
}

.password-requirements p {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.4;
}

/* Form Options */
.form-options {
    margin-bottom: 2rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ecf0f1;
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    opacity: 1;
}

.checkbox-text {
    font-weight: 500;
}

.checkbox-wrapper.error .checkbox-text {
    color: #e74c3c;
}

.checkbox-wrapper.error .checkmark {
    border-color: #e74c3c;
}

/* Signup Button */
.signup-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    line-height: 18px;
}

.signup-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.signup-btn:active {
    transform: translateY(0);
}

/* Signup Footer */
.signup-footer {
    text-align: center;
}

.signup-footer p {
    color: #7f8c8d;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
}

.signup-footer p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.signup-footer p a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 0.8rem;
    color: #95a5a6;
    margin: 0;
}

/* Error and Success Messages */
.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
    animation: slideDown 0.3s ease;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

/* Toaster Styles */
.toaster {
    position: fixed;
    top: 20px;
    right: 0;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: block;
}

.toaster.active {
    transform: translateX(-5%);
}

.toaster.success .toaster-content {
    border-left-color: #27ae60;
}

.toaster.success .toaster-icon {
    background: #27ae60;
}

.toaster.success .toaster-errors li {
    color: #27ae60;
}

.toaster.success .toaster-errors li:before {
    color: #27ae60;
}

.toaster:not(.success) .toaster-content {
    border-left-color: #e74c3c;
}

.toaster:not(.success) .toaster-icon {
    background: #e74c3c;
}

.toaster:not(.success) .toaster-errors li {
    color: #e74c3c;
}

.toaster:not(.success) .toaster-errors li:before {
    color: #e74c3c;
}

.toaster-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #e74c3c;
    padding: 1.5rem;
    max-width: 400px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.toaster-icon {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toaster-icon i {
    font-size: 1.2rem;
}

.toaster-message {
    flex: 1;
}

.toaster-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.toaster-errors {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toaster-errors li {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.toaster-errors li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

.toaster-errors li:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .signup-container {
        padding: 1rem;
    }
    
    .signup-card {
        flex-direction: column;
        max-width: 100%;
    }
    
    .signup-left {
        flex: 0 0 200px;
        min-height: 200px;
    }
    
    .signup-right {
        flex: 1;
        padding: 2rem;
    }
    
    .form-header .brand-logo-small {
        font-size: 1.5rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .hero-image {
        background-position: center;
    }
}

@media (max-width: 480px) {
    .signup-container {
        padding: 0.5rem;
    }
    
    .signup-right {
        padding: 1.5rem;
    }
    
    .form-header {
        margin-bottom: 1.5rem;
    }
    
    .form-title {
        font-size: 1.3rem;
    }
    
    .form-subtitle {
        font-size: 0.9rem;
    }
    
    .signup-btn {
        padding: 0.875rem;
        font-size: 1rem;
    }
}
