/* Modern Color Palette */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5649c0;
    --secondary: #fd79a8;
    --accent: #00cec9;
    --dark: #2d3436;
    --light: #f5f6fa;
    --white: #ffffff;
    --success: #00b894;
    --error: #d63031;
    --warning: #fdcb6e;
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Main Container */
.signup-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Glass Card */
.signup-glass {
    flex: 1;
    max-width: 500px;
    padding: 3rem;
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

/* Header Styles */
.signup-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.logo-icon {
    font-size: 2rem;
    color: var(--white);
    margin-right: 0.75rem;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.signup-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--secondary);
    font-weight: 700;
}

.signup-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Form Styles */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-group {
    position: relative;
    margin-bottom: 0.5rem;
}

.form-group.floating input {
    width: 100%;
    padding: 1.2rem 1rem 0.5rem 2.5rem;
    font-size: 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    transition: all 0.3s ease;
}

.form-group.floating input:focus {
    outline: none;
    border-bottom-color: var(--secondary);
}

.form-group.floating label {
    position: absolute;
    top: 1rem;
    left: 2.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group.floating.focused label,
.form-group.floating input:not(:placeholder-shown) + label {
    top: 0.2rem;
    left: 2.5rem;
    font-size: 0.75rem;
    color: var(--secondary);
}

.underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.form-group.floating.focused .underline,
.form-group.floating input:not(:placeholder-shown) ~ .underline {
    width: 100%;
}

.form-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.form-group.floating.focused .form-icon,
.form-group.floating input:not(:placeholder-shown) ~ .form-icon {
    color: var(--secondary);
}

.toggle-password {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

/* Button Styles */
.signup-btn {
    position: relative;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: white;
    border: none;
    padding: 1.1rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(253, 121, 168, 0.3);
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 121, 168, 0.4);
}

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

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.signup-btn:hover .btn-icon {
    transform: translateX(3px);
}

.btn-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    transition: left 0.6s ease;
}

.signup-btn:hover .btn-hover-effect {
    left: 0;
}

/* Alert Messages */
.alert-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-left: 4px solid transparent;
}

.alert-message.error {
    border-left-color: var(--error);
    color: var(--white);
}

.alert-message.success {
    border-left-color: var(--success);
    color: var(--white);
}

.alert-message i {
    font-size: 1.2rem;
}

.alert-message.error i {
    color: var(--error);
}

.alert-message.success i {
    color: var(--success);
}

/* Password Indicators */
.password-strength,
.password-match {
    font-size: 0.8rem;
    padding: 0.25rem 0;
    font-weight: 500;
}

.password-strength.weak {
    color: var(--error);
}

.password-strength.medium {
    color: var(--warning);
}

.password-strength.strong {
    color: var(--success);
}

.password-match.match {
    color: var(--success);
}

.password-match.no-match {
    color: var(--error);
}

/* Footer */
.signup-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

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

.auth-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.terms {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.terms a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Hero Section */
.signup-hero {
    flex: 1;
    display: none;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: absolute;
    bottom: 5rem;
    left: 5rem;
    z-index: 2;
    max-width: 500px;
}

.hero-title {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.benefits-list {
    list-style: none;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
}

.benefit-icon {
    font-size: 1.5rem;
    color: var(--secondary);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('{% static "app/images/signup-hero.jpg" %}') center/cover no-repeat;
    opacity: 0.9;
}

/* Responsive Design */
@media (min-width: 1200px) {
    .signup-hero {
        display: block;
    }
}

@media (max-width: 768px) {
    .signup-glass {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .signup-glass {
        padding: 1.5rem;
    }
    
    .logo-text {
        font-size: 1.8rem;
    }
    
    .signup-title {
        font-size: 1.5rem;
    }
}