/* YELLOW Crypto Exchange - Production CSS */
/* Complete Tailwind CSS Production Build - Maintains Original Design */

/* Base styles */
*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family: 'Manrope', sans-serif;
}

body {
    margin: 0;
    line-height: inherit;
    min-height: max(884px, 100dvh);
    background-color: #F7F5FF;
    font-family: 'Manrope', sans-serif;
    color: #1A0A2E;
}

/* Utility classes */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Flexbox utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-grow {
    flex-grow: 1;
}

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

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

/* Spacing */
.p-6 {
    padding: 1.5rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.pl-4 {
    padding-left: 1rem;
}

.pr-10 {
    padding-right: 2.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.ml-3 {
    margin-left: 0.75rem;
}

.ml-4 {
    margin-left: 1rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

/* Colors */
.text-text-primary {
    color: #1A0A2E;
}

.text-text-secondary {
    color: #5C546B;
}

.text-white {
    color: #ffffff;
}

.text-accent-dark {
    color: #7F709A;
}

.text-positive-change {
    color: #34D399;
}

.text-negative-change {
    color: #EF4444;
}

.bg-background {
    background-color: #F7F5FF;
}

.bg-card-bg {
    background-color: #FFFFFF;
}

.bg-accent\/20 {
    background-color: rgba(169, 156, 191, 0.2);
}

.bg-accent\/10 {
    background-color: rgba(169, 156, 191, 0.1);
}

.bg-positive-change {
    background-color: #34D399;
}

.bg-negative-change {
    background-color: #EF4444;
}

.bg-accent {
    background-color: #A99CBF;
}

.bg-transparent {
    background-color: transparent;
}

/* Borders */
.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-divider {
    border-color: #EAE6F5;
}

.border-accent-dark {
    border-color: #7F709A;
}

.border-none {
    border-style: none;
}

/* Border radius */
.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Shadows */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-accent-dark\/20 {
    box-shadow: 0 8px 30px rgba(127, 112, 154, 0.15);
}

.shadow-accent-dark\/40 {
    box-shadow: 0 8px 30px rgba(127, 112, 154, 0.25);
}

/* Form styles */
.form-input {
    background-color: #FFFFFF !important;
    border: 2px solid #EAE6F5 !important;
    color: #1A0A2E !important;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
}

.form-input:focus {
    border-color: #7F709A !important;
    box-shadow: 0 0 0 3px rgba(127, 112, 154, 0.2) !important;
    background-color: #FFFFFF !important;
    outline: none;
}

.form-input::placeholder {
    color: #5C546B !important;
    font-weight: 400;
}

.form-select {
    background-color: #FFFFFF !important;
    border: 2px solid #EAE6F5 !important;
    color: #1A0A2E !important;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

.form-select:focus {
    border-color: #7F709A !important;
    box-shadow: 0 0 0 3px rgba(127, 112, 154, 0.2) !important;
    background-color: #FFFFFF !important;
    outline: none;
}

/* Button styles */
.btn-gradient {
    background: linear-gradient(to right, #7F709A, #A99CBF);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(127, 112, 154, 0.15);
}

.btn-gradient:hover {
    background: linear-gradient(to right, #6B5B8A, #9A8BB8);
    box-shadow: 0 8px 30px rgba(127, 112, 154, 0.25);
}

.btn-gradient:active {
    transform: scale(0.95);
}

.btn-gradient:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #7F709A;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(127, 112, 154, 0.3);
    border: none;
    border-radius: 0.75rem;
    padding: 1rem;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px 0 rgba(127, 112, 154, 0.35);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #7F709A;
    color: #7F709A;
    border-radius: 0.75rem;
    padding: 1rem;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(127, 112, 154, 0.1);
}

.btn-secondary:active {
    transform: scale(0.95);
}

/* Layout utilities */
.w-full {
    width: 100%;
}

.h-auto {
    height: auto;
}

.h-screen {
    height: 100vh;
}

.min-h-screen {
    min-height: 100vh;
}

.h-16 {
    height: 4rem;
}

.h-5 {
    height: 1.25rem;
}

.w-5 {
    width: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.w-6 {
    width: 1.5rem;
}

.size-10 {
    width: 2.5rem;
    height: 2.5rem;
}

.min-w-\[120px\] {
    min-width: 7.5rem;
}

/* Space utilities */
.space-y-8 > * + * {
    margin-top: 2rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

/* Position utilities */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.left-0 {
    left: 0;
}

.top-4 {
    top: 1rem;
}

.left-4 {
    left: 1rem;
}

.right-4 {
    right: 1rem;
}

/* Z-index */
.z-50 {
    z-index: 50;
}

/* Display utilities */
.block {
    display: block;
}

.hidden {
    display: none;
}

/* Overflow */
.overflow-x-hidden {
    overflow-x: hidden;
}

/* Animations */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

/* Hover effects */
.hover\:shadow-accent-dark\/40:hover {
    box-shadow: 0 8px 30px rgba(127, 112, 154, 0.25);
}

.hover\:bg-accent\/10:hover {
    background-color: rgba(169, 156, 191, 0.1);
}

/* Active effects */
.active\:scale-95:active {
    transform: scale(0.95);
}

/* Focus effects */
.focus\:ring-0:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:border-accent-dark:focus {
    border-color: #7F709A;
}

.focus\:ring-0:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

/* Responsive utilities */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Grid */
.grid {
    display: grid;
}

/* Object fit */
.object-cover {
    object-fit: cover;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

/* Placeholder */
.placeholder\:text-text-secondary::placeholder {
    color: #5C546B;
}

/* Material Icons */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Alert styles */
.alert-error {
    background-color: #EF4444;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #34D399;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Divider */
.border-t {
    border-top-width: 1px;
}

/* Flex-1 for phone input */
.flex-1 {
    flex: 1 1 0%;
}

/* Height full */
.h-full {
    height: 100%;
}

/* Additional custom styles for exact design match */
.form-input:focus-within {
    border-color: #7F709A;
    box-shadow: 0 0 0 2px rgba(127, 112, 154, 0.4);
}

/* Country flag styling */
.country-flag-img {
    height: 1.25rem;
    width: 1.25rem;
    border-radius: 9999px;
    object-fit: cover;
    margin-right: 0.5rem;
}

/* Phone input container */
.phone-input-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.country-selector {
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    border: 1px solid #EAE6F5;
    border-radius: 0.5rem;
    padding: 0.75rem 0.75rem;
    min-width: 7.5rem;
    height: 4rem;
}

.country-selector select {
    background: transparent;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1A0A2E;
    cursor: pointer;
}

.country-selector select:focus {
    outline: none;
}

/* Main layout */
.main-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 1.5rem;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 2rem;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-footer {
    text-align: center;
    font-size: 0.875rem;
    color: #5C546B;
}

/* Back button */
.back-button {
    position: absolute;
    left: 0;
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: rgba(169, 156, 191, 0.2);
    color: #1A0A2E;
}

/* Form container */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #5C546B;
    margin-bottom: 0.5rem;
}

/* Divider with text */
.divider-with-text {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.divider-line {
    flex: 1 1 0%;
    border-top: 1px solid #EAE6F5;
}

.divider-text {
    padding: 0 1rem;
    font-size: 0.875rem;
    color: #5C546B;
}

/* Link styling */
.link-accent {
    font-weight: 600;
    color: #7F709A;
    text-decoration: none;
}

.link-accent:hover {
    text-decoration: underline;
}
