:root {
    --bg-color: #0d0f1a;
    --card-bg: rgba(23, 27, 44, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --input-bg: rgba(15, 23, 42, 0.6);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus: rgba(99, 102, 241, 0.5);

    --blob-1: #8b5cf6;
    --blob-2: #3b82f6;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Background Blobs for Visual Interest */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s ease-in-out infinite alternate;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background-color: var(--blob-1);
    top: -100px;
    left: -100px;
    border-radius: 50%;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background-color: var(--blob-2);
    bottom: -150px;
    right: -150px;
    border-radius: 50%;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.login-box {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.logo-container {
    text-align: center;
    margin-bottom: 2.5rem;
}

.cloudApp-orig {
    max-width: 140px;
    height: auto;
    margin: 0 auto 2.75rem;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.logo-container p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #e2e8f0;
}

.password-label-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-password {
    color: var(--accent-color);
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--accent-hover);
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--input-focus);
    background: rgba(30, 41, 59, 0.8);
}

input::placeholder {
    color: #64748b;
}

.remember-group {
    margin-top: -0.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-container:hover input~.checkmark {
    border-color: var(--text-secondary);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.sign-in-btn,
.google-sign-in-btn {
    width: 100%;
    padding: 0.875rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.sign-in-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    margin-top: 0.5rem;
}

.sign-in-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

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

.google-sign-in-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--input-border);
}

.google-sign-in-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.signup-prompt {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.signup-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.signup-link:hover {
    color: var(--accent-color);
}

/* Animations for inputs staggered */
.input-group,
.remember-group,
.sign-in-btn,
.google-sign-in-btn,
.signup-prompt {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.input-group:nth-child(1) {
    animation-delay: 0.2s;
}

.input-group:nth-child(2) {
    animation-delay: 0.3s;
}

.remember-group {
    animation-delay: 0.4s;
}

.sign-in-btn {
    animation-delay: 0.5s;
}

.google-sign-in-btn {
    animation-delay: 0.6s;
}

.signup-prompt {
    animation-delay: 0.7s;
}

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