/* Index.css - Desktop First */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #EE4D2D 0%, #FF6347 100%);
}

.page-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated background circles */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.bg-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.bg-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

.bg-circle:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.login-container {
    width: 90%;
    max-width: 440px;
    position: relative;
    z-index: 10;
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo-container {
    text-align: center;
    margin-bottom: 24px;
    animation: fadeIn 0.8s ease 0.2s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    }
}

.logo i {
    font-size: 36px;
    color: #EE4D2D;
}

.logo-text {
    color: white;
    font-size: 26px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    margin-top: 4px;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: cardSlide 0.6s ease 0.3s backwards;
}

@keyframes cardSlide {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h2 {
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 6px;
    font-weight: 700;
}

.login-header p {
    color: #666;
    font-size: 13px;
}

.form-group {
    margin-bottom: 16px;
    animation: inputSlide 0.5s ease backwards;
}

.form-group:nth-child(1) {
    animation-delay: 0.4s;
}

.form-group:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes inputSlide {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    transition: all 0.3s;
}

.form-control {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #EE4D2D;
    background: white;
    box-shadow: 0 4px 12px rgba(238, 77, 45, 0.15);
    transform: translateY(-2px);
}

.form-control:focus+.input-icon {
    color: #EE4D2D;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: all 0.3s;
}

.toggle-password:active {
    transform: translateY(-50%) scale(0.9);
}

.remember-forgot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
    animation: inputSlide 0.5s ease 0.6s backwards;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
}

.remember-me input {
    width: 18px;
    height: 18px;
    accent-color: #EE4D2D;
    cursor: pointer;
}

.remember-me label {
    color: #666;
    cursor: pointer;
}

.forgot-link {
    color: #EE4D2D;
    text-decoration: none;
    font-weight: 600;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #EE4D2D 0%, #FF6347 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(238, 77, 45, 0.3);
    animation: inputSlide 0.5s ease 0.7s backwards;
}

.btn-login:active {
    transform: scale(0.97);
}

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

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0 16px;
    color: #999;
    font-size: 13px;
    animation: fadeIn 0.5s ease 0.8s backwards;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

.divider span {
    padding: 0 12px;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease 0.9s backwards;
}

.btn-social {
    padding: 11px;
    border: 2px solid #eee;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-social:hover {
    border-color: #ddd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-social.google {
    color: #EA4335;
}

.btn-social.apple {
    color: #000;
}

.btn-social i {
    font-size: 16px;
}

.signup-link {
    text-align: center;
    color: #666;
    font-size: 13px;
    animation: fadeIn 0.5s ease 1s backwards;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.btn-signup {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #EE4D2D;
    border: 2px solid #EE4D2D;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-signup:hover {
    background: rgba(238, 77, 45, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 77, 45, 0.1);
}

.btn-signup:active {
    transform: scale(0.98);
}

.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

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

/* Success animation */
@keyframes success {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    100% {
        transform: scale(1);
    }
}

.btn-login.success {
    animation: success 0.4s ease;
}