/* ===========================
   SIGNUP PAGE STYLES
   =========================== */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* ===========================
   SIGNUP CONTAINER
   =========================== */

.signup-container {
    display: flex;
    width: 95%;
    max-width: 1100px;
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.6s ease-out;
}

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

/* ===========================
   LEFT SIDE - BENEFITS
   =========================== */

.signup-left {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.signup-left::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -50px;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}

.signup-left::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -30px;
    left: -30px;
    animation: float 8s ease-in-out infinite reverse;
}

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

.signup-benefits {
    text-align: center;
    position: relative;
    z-index: 1;
}

.benefit-icon {
    font-size: 80px;
    margin-bottom: 30px;
    display: inline-block;
    animation: bounceIn 0.8s ease-out 0.2s both;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.signup-benefits h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
    animation: slideDown 0.6s ease-out 0.3s both;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signup-benefits > p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 40px;
    animation: slideDown 0.6s ease-out 0.4s both;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    opacity: 0.95;
    animation: slideDown 0.6s ease-out forwards;
}

.benefit-item:nth-child(1) { animation-delay: 0.5s; }
.benefit-item:nth-child(2) { animation-delay: 0.6s; }
.benefit-item:nth-child(3) { animation-delay: 0.7s; }
.benefit-item:nth-child(4) { animation-delay: 0.8s; }

.benefit-item i {
    font-size: 18px;
}

/* ===========================
   RIGHT SIDE - FORM
   =========================== */

.signup-right {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-white);
    overflow-y: auto;
    max-height: 100vh;
}

.signup-form {
    width: 100%;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.form-header p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

/* ===========================
   FORM LAYOUT
   =========================== */

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

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

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label i {
    margin-right: 6px;
    color: var(--primary-color);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input::placeholder {
    color: #d1d5db;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group.focused .form-input {
    border-color: var(--primary-color);
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrapper .form-input {
    width: 100%;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 16px;
    padding: 6px;
    transition: color 0.2s ease;
}

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

/* ===========================
   ALERTS
   =========================== */

.alert-message {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-success {
    background-color: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.alert-message i {
    margin-right: 10px;
    font-size: 16px;
}

/* ===========================
   BUTTONS
   =========================== */

.btn-signup {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
    margin-top: 10px;
    margin-bottom: 20px;
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1c3a8a 100%);
}

.btn-signup:active {
    transform: translateY(0);
}

/* ===========================
   FORM FOOTER
   =========================== */

.form-footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.form-footer p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

.link-login {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

/* ===========================
   TERMS
   =========================== */

.form-terms {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
}

.form-terms a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.form-terms a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 1024px) {
    .signup-container {
        flex-direction: column;
        max-width: 100%;
        border-radius: 0;
    }

    .signup-left {
        padding: 40px 20px;
        min-height: 250px;
    }

    .signup-left::before {
        width: 150px;
        height: 150px;
        top: -40px;
        right: -40px;
    }

    .signup-left::after {
        width: 100px;
        height: 100px;
        bottom: -20px;
        left: -20px;
    }

    .signup-benefits h1 {
        font-size: 28px;
    }

    .signup-benefits > p {
        font-size: 14px;
    }

    .benefit-icon {
        font-size: 60px;
        margin-bottom: 20px;
    }

    .signup-right {
        padding: 40px 25px;
        max-height: none;
    }

    .form-header h2 {
        font-size: 24px;
    }
}

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

    .form-header h2 {
        font-size: 22px;
    }

    .form-header {
        margin-bottom: 25px;
    }

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

    .form-input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn-signup {
        padding: 12px 16px;
        font-size: 14px;
    }

    .benefit-item {
        font-size: 13px;
    }

    html, body {
        align-items: flex-start;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .signup-right {
        padding: 20px 15px;
    }

    .form-header h2 {
        font-size: 18px;
    }

    .form-header {
        margin-bottom: 20px;
    }

    .form-row {
        gap: 10px;
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .form-input {
        padding: 10px;
        font-size: 13px;
    }

    .btn-signup {
        padding: 10px 14px;
        font-size: 12px;
        gap: 6px;
    }

    .form-footer {
        padding: 15px 0;
        margin-bottom: 10px;
    }

    .form-footer p {
        font-size: 12px;
    }

    .form-terms {
        font-size: 11px;
    }

    .signup-left {
        padding: 30px 15px;
        min-height: 200px;
    }

    .signup-benefits h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .signup-benefits > p {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .benefit-icon {
        font-size: 50px;
        margin-bottom: 15px;
    }

    .benefits-list {
        gap: 12px;
    }
}

/* ===========================
   INPUT AUTOFILL
   =========================== */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    box-shadow: 0 0 0 30px white inset !important;
}

input:-webkit-autofill {
    -webkit-text-fill-color: var(--text-dark) !important;
}