/* static/css/signup.css */
/* 🎯 EPIC 1: Signup Page Styles */

:root {
    --primary-color: #2c5f7e;
    --secondary-color: #3a7ca5;
    --accent-color: #ff6b35;
}

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

body {
    font-family: 'Oswald', sans-serif;
}

/* Signup Container */
.signup-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-image: url('https://images.unsplash.com/photo-1544551763-46a013bb70d5?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.signup-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 95, 126, 0.85) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
}

/* Signup Card */
.signup-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
}

.signup-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.signup-header {
    text-align: center;
    margin-bottom: 35px;
}

.signup-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.signup-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.signup-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 400;
}

/* Form */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: 'Oswald', sans-serif;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(44, 95, 126, 0.1);
}

.form-control:hover {
    border-color: var(--secondary-color);
}

/* Helper Text */
.form-helper {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 400;
    margin-top: 4px;
}

/* Error Messages */
.error-message {
    font-size: 0.85rem;
    color: #cc0000;
    font-weight: 500;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message::before {
    content: '⚠️';
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.form-checkbox label {
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    font-weight: 400;
}

/* Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--accent-color) 0%, #e55a2b 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    font-family: 'Oswald', sans-serif;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    gap: 15px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider-text {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Login Link */
.login-link {
    text-align: center;
    font-size: 1rem;
    color: #333;
}

.login-link a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-link a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 576px) {
    .signup-card {
        padding: 40px 30px;
    }

    .signup-title {
        font-size: 1.7rem;
    }

    .signup-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .signup-card {
        padding: 30px 20px;
    }

    .signup-icon {
        font-size: 3rem;
    }

    .signup-title {
        font-size: 1.5rem;
    }
}



/* 🎯 EPIC 2: Plan Selector Styles */
/* Add these to the END of your signup.css file */

/* Plan Selector Container */
.plan-selector {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
}

.plan-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Plan Tabs Grid */
.plan-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

/* Individual Plan Tab */
.plan-tab {
    position: relative;
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-tab:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.plan-tab.active {
    border-color: var(--accent-color);
    background: #fff5f0;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.2);
}

/* Best Value Ribbon */
.plan-ribbon {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Plan Header */
.plan-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.plan-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: #6c757d;
}

/* Plan Features List */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
}

.plan-features li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .plan-tabs {
        grid-template-columns: 1fr;
    }
    
    .plan-selector {
        padding: 20px;
    }
    
    .plan-title {
        font-size: 1.3rem;
    }
    
    .plan-tab {
        padding: 15px;
    }
    
    .plan-header h4 {
        font-size: 1.1rem;
    }
    
    .plan-price {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .plan-selector {
        padding: 15px;
        margin: 20px 0;
    }
    
    .plan-tab {
        padding: 12px;
    }
    
    .plan-features li {
        font-size: 0.85rem;
        padding: 6px 0;
    }
}

/* ==================== REQUIRED FIELD ASTERISK ==================== */
.required-asterisk {
    color: #dc3545;
    font-weight: bold;
    margin-left: 3px;
    font-size: 1.1em;
}

/* ==================== PASSWORD FIELD WITH EYE ICON ==================== */
.password-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field-wrapper input {
    padding-right: 50px;
    flex: 1;
}

.password-eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: all 0.3s ease;
    border-radius: 6px;
    width: 36px;
    height: 36px;
}

.password-eye-btn:hover {
    background: rgba(44, 95, 126, 0.1);
    color: #2c5f7e;
}

.password-eye-btn:focus {
    outline: 2px solid #2c5f7e;
    outline-offset: 2px;
}

.password-eye-btn.active {
    color: #2c5f7e;
    background: rgba(44, 95, 126, 0.15);
}

.password-eye-btn svg {
    pointer-events: none;
}

/* ==================== ERROR HIGHLIGHTING ==================== */
.error-highlight,
.form-control.error-highlight {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5 !important;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.has-error .form-label {
    color: #dc3545;
    font-weight: 600;
}

.has-error .required-asterisk {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 8px;
    display: block;
    padding: 8px 12px;
    background: #fff5f5;
    border-left: 3px solid #dc3545;
    border-radius: 4px;
}

.error-message ul {
    margin: 0;
    padding-left: 20px;
}

/* ==================== SUCCESS STATE ==================== */
.form-control:valid:not(:placeholder-shown):not(.error-highlight) {
    border-color: #28a745;
}

.form-control:valid:not(:placeholder-shown):not(.error-highlight):focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* ==================== FORM HELPER TEXT ==================== */
.form-helper {
    display: block;
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 6px;
    line-height: 1.4;
}

/* ==================== FOCUS STATES ==================== */
.form-control:focus {
    border-color: #2c5f7e;
    box-shadow: 0 0 0 0.2rem rgba(44, 95, 126, 0.25);
    outline: none;
}

/* ==================== ALERT STYLING (Optional Enhancement) ==================== */
/* Custom alert dialog - you can use this later if you want custom modal instead of browser alert */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-left: 4px solid #dc3545;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
