/* Font Faces */
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Fonts/Inter-Regular-4d3af571c1eaf96e1e58f88a158ff9107e7aa77e5dce7f5e30cea5d7149c6f70.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Fonts/Inter-Medium-64fed266406fcc96f7a47848817209e14a7f3d539503951b507239653512ae27.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Fonts/Inter-Bold-4555674e339a87091ab7087e93b2c5317d36b982dc924cb89f3011faa11f23eb.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 0;
    overflow-x: hidden;
}

/* Gradient Background System */
.gradient-background__wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(20, 20, 20);
    overflow: hidden;
    z-index: -2;
}

.gradient-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.gradient-background__dark {
    filter: blur(250px);
    overflow: visible;
}

.gradient-background__shape {
    position: absolute;
    border-radius: 100%;
    mix-blend-mode: lighten;
}

.gradient-background__shape--1 {
    background-color: rgb(142, 123, 255);
    width: 700px;
    height: 700px;
    top: 37.6px;
    left: 0px;
    right: 281.6px;
    bottom: 0px;
    animation: shape1-movement 20s ease-in-out infinite;
}

.gradient-background__shape--2 {
    background-color: rgb(68, 242, 235);
    width: 600px;
    height: 600px;
    top: 0px;
    left: 381.6px;
    right: 0px;
    bottom: 137.6px;
    animation: shape2-movement 25s ease-in-out infinite;
}

/* Animations for gradient shapes */
@keyframes shape1-movement {
    0%, 100% {
        transform: translate(-300px, 150px) rotate(30deg) scale(1);
    }
    25% {
        transform: translate(-280px, 180px) rotate(50deg) scale(1.05);
    }
    50% {
        transform: translate(-320px, 120px) rotate(70deg) scale(0.95);
    }
    75% {
        transform: translate(-290px, 160px) rotate(40deg) scale(1.02);
    }
}

@keyframes shape2-movement {
    0%, 100% {
        transform: translate(350px, 150px) rotate(-40deg) scale(1);
    }
    25% {
        transform: translate(370px, 120px) rotate(-20deg) scale(1.05);
    }
    50% {
        transform: translate(330px, 180px) rotate(-50deg) scale(0.95);
    }
    75% {
        transform: translate(360px, 140px) rotate(-30deg) scale(1.02);
    }
}

.gradient-background__noise {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("https://cdn.shopify.com/shopifycloud/identity/assets/gradient/noise-ae0ab1628dee87591c6f6d3740b6e7e4e5109417e35a0781070d9d737f959e22.png");
    background-size: 100px;
    background-repeat: repeat;
    opacity: 1;
    z-index: -1;
    pointer-events: none;
}

/* Page Container */
.page-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.content-wrapper {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Login Card */
.login-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
}

/* Header */
.logo-header {
    padding: 32px 40px 24px;
    text-align: left;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.shopify-logo {
    height: 30px;
    width: auto;
}

/* Main Content */
.login-content {
    padding: 0 40px 40px;
}

.login-title {
    font-size: 28px;
    font-weight: 600;
    color: #212326;
    margin-bottom: 8px;
    line-height: 1.2;
}

.login-subtitle {
    font-size: 14px;
    color: #6d7175;
    margin-bottom: 24px;
}

/* Error Message */
.error-message {
    background-color: #fef5f5;
    border: 1px solid #f5c6c6;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.error-text {
    color: #bf0711;
    font-size: 13px;
}

.error-refresh-btn {
    background: transparent;
    border: none;
    color: #2c6ecb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* Form */
.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #212326;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 11px 12px;
    font-size: 14px;
    border: 1px solid #000000;
    border-radius: 4px;
    outline: none;
    transition: all 0.2s ease;
    background-color: white;
}

.form-input:hover {
    border-color: #8c9196;
}

.form-input:focus {
    border-color: #005bd3;
    box-shadow: 0 0 0 1px #005bd3;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background-color: #303030;
    color: white;
    position: relative;
}

.btn-primary:hover:not(:disabled) {
    background-color: #1a1a1a;
}

.btn-primary:hover:not(:disabled) .btn-arrow-icon {
    display: inline-block;
    margin-left: 8px;
}

.btn-primary:disabled {
    background-color: #d3d3d3;
    color: #8c9196;
    cursor: not-allowed;
}

.btn-arrow-icon {
    display: none;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.btn-secondary {
    background-color: #f6f6f7;
    color: #212326;
    border: none;
}

.btn-secondary:hover {
    background-color: #ebebeb;
}

.passkey-btn {
    margin-bottom: 16px;
    border-radius: 8px;
    font-weight: 400;
    color: #303030;
}

.passkey-icon {
    width: 20px;
    height: 20px;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e1e3e5;
}

.divider-text {
    position: relative;
    display: inline-block;
    background-color: white;
    padding: 0 12px;
    font-size: 13px;
    color: #6d7175;
}

/* Social Buttons */
.social-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.btn-social {
    padding: 11px 12px;
    background-color: #f6f6f7;
    border: none;
    border-radius: 8px;
    justify-content: center;
}

.btn-social:hover {
    background-color: #ebebeb;
}

.social-icon {
    width: 20px;
    height: 20px;
}

.apple-btn .social-icon {
    color: #000000;
}

/* Sign Up Link */
.signup-link {
    text-align: left;
    font-size: 14px;
    color: #212326;
}

.link {
    color: #2c6ecb;
    text-decoration: none;
    font-weight: 600;
}

.link:hover {
    text-decoration: underline;
}

/* Footer */
.card-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    padding: 20px 40px 24px;
    background-color: #fafbfb;
}

.footer-link {
    font-size: 13px;
    color: #6d7175;
    text-decoration: none;
    font-weight: 400;
    position: relative;
}

.footer-link:hover {
    color: #212326;
    text-decoration: underline;
}

.mobile-footer {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .page-container {
        min-height: 100vh;
        align-items: flex-start;
    }

    .content-wrapper {
        max-width: 100%;
    }

    .login-card {
        box-shadow: none;
        border-radius: 0;
        min-height: calc(100vh - 60px);
    }

    .logo-header {
        padding: 24px 20px 16px;
    }

    .login-content {
        padding: 0 20px 24px;
    }

    .login-title {
        font-size: 24px;
    }

    .card-footer {
        display: none;
    }

    .mobile-footer {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 16px;
        padding: 20px 20px 24px;
        background: #fafbfb;
    }
}

@media (max-width: 480px) {
    .logo-header {
        padding: 20px 16px 12px;
    }

    .login-content {
        padding: 0 16px 20px;
    }

    .login-title {
        font-size: 22px;
    }

    .captcha-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .captcha-logo {
        align-self: flex-start;
        align-items: flex-start;
    }

    .social-buttons {
        gap: 8px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid #005bd3;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #005bd3;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .login-card {
        box-shadow: none;
    }
}

