/**
 * Main CSS - SaaS Signup Portal
 * Dark purple theme with modern, clean design
 */

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

:root {
    /* Dark Purple Theme Colors */
    --primary-purple: #5B21B6;      /* Deep purple */
    --secondary-purple: #7C3AED;    /* Medium purple */
    --light-purple: #A78BFA;        /* Light purple accent */
    --dark-bg: #1A0B2E;             /* Very dark purple background */
    --card-bg: #2D1B4E;             /* Card background */
    --hover-bg: #3D2B5E;            /* Hover state */

    /* Text Colors */
    --text-primary: #F3F4F6;        /* Light gray for primary text */
    --text-secondary: #D1D5DB;      /* Medium gray for secondary text */
    --text-muted: #9CA3AF;          /* Muted gray */

    /* Functional Colors */
    --success: #10B981;             /* Green */
    --warning: #F59E0B;             /* Orange */
    --error: #EF4444;               /* Red */
    --info: #3B82F6;                /* Blue */

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;

    /* Shadows */
    --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-purple: 0 4px 14px 0 rgba(123, 58, 237, 0.39);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0F0520 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

a {
    color: var(--light-purple);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-purple);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header */
header {
    background: rgba(45, 27, 78, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(167, 139, 250, 0.1);
    padding: var(--spacing-lg) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--secondary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* Main Content */
main {
    flex: 1;
    padding: var(--spacing-xxl) 0;
}

/* Footer */
footer {
    background: rgba(45, 27, 78, 0.6);
    border-top: 1px solid rgba(167, 139, 250, 0.1);
    padding: var(--spacing-xl) 0;
    margin-top: auto;
    text-align: center;
}

footer p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.875rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: var(--shadow-purple);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-lg);
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: var(--spacing-md);
    background: rgba(15, 5, 32, 0.5);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

input[readonly] {
    background: rgba(15, 5, 32, 0.3);
    cursor: not-allowed;
    opacity: 0.7;
}

small {
    display: block;
    margin-top: var(--spacing-sm);
    color: var(--text-muted);
    font-size: 0.75rem;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-purple) 0%, var(--primary-purple) 100%);
    color: white;
    box-shadow: var(--shadow-purple);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(123, 58, 237, 0.5);
}

.btn-secondary {
    background: rgba(167, 139, 250, 0.1);
    color: var(--light-purple);
    border: 1px solid var(--light-purple);
}

.btn-secondary:hover {
    background: rgba(167, 139, 250, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.btn-outline:hover {
    background: rgba(167, 139, 250, 0.1);
    border-color: var(--light-purple);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

/* Utility Classes */
.subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--success);
}

.text-error {
    color: var(--error);
}

.text-warning {
    color: var(--warning);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .container {
        padding: 0 var(--spacing-md);
    }

    .card {
        padding: var(--spacing-lg);
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
