/* 
  MayurPay - Professional Fintech Design System 
  Main Style Sheet
*/

:root {
    /* Color Palette - Deep Dark Fintech */
    --primary: #6366f1; /* Indigo */
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #06b6d4; /* Cyan */
    --accent: #f43f5e; /* Rose */
    --success: #10b981; /* Emerald */
    --warning: #f59e0b; /* Amber */
    --danger: #ef4444; /* Red */
    
    /* Neutral Colors */
    --bg-main: #020617; /* Very Dark Blue/Black */
    --bg-card: #0f172a; /* Slate 900 */
    --bg-input: #1e293b; /* Slate 800 */
    --border: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(99, 102, 241, 0.5);
    
    /* Text */
    --text-white: #f8fafc;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    
    /* Glassmorphism */
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    /* Shadows & Glows */
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    --glow-primary: 0 0 20px rgba(99, 102, 241, 0.2);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

p {
    color: var(--text-dim);
    line-height: 1.6;
}

/* Layout Components */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    width: 100%;
    max-width: 700px;
    margin: 100px auto;
    padding: 0 20px;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card Styles */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 32px;
    box-shadow: var(--shadow-xl);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--border-focus);
    transform: translateY(-4px);
}

/* Forms & Inputs */
.input-group {
    margin-bottom: 20px;
}

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

input[type="text"], 
input[type="password"], 
input[type="tel"], 
input[type="email"],
input[type="number"],
.phone-input,
.email-input,
.password-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 18px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.phone-input, .email-input, .password-input {
    display: flex;
    align-items: center;
    padding: 0;
}

.phone-input input, .email-input input, .password-input input {
    background: transparent;
    border: none;
    padding: 14px 18px;
}

.field-icon {
    padding: 0 16px;
    color: var(--text-dim);
    border-right: 1px solid var(--border);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-code {
    padding: 0 16px;
    color: var(--text-dim);
    border-right: 1px solid var(--border);
    font-weight: 600;
}

input:focus, .phone-input:focus-within, .email-input:focus-within, .password-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

/* Buttons */
.btn {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

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

/* Auth Page Specific */
.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
}

.side-info {
    flex: 1;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-main));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    border-left: 1px solid var(--border);
}

@media (max-width: 900px) {
    .side-info { display: none; }
}

/* Navigation Header */
.nav-header {
    width: 100%;
    padding: 20px 0;
    position: fixed;
    top: 0;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Utilities */
.hidden { display: none !important; }

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Grid Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .grid-2 { grid-template-columns: 1fr; }
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    color: white;
}

.logo h1 {
    font-size: 24px;
    background: linear-gradient(to right, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
