/* Glassmorphism & Premium Design */
:root {
    --primary-color: #00704A;
    --primary-dark: #005c3d;
    --accent-color: #d4e9e2;
    --text-color: #1e1e1e;
    --bg-color: #f1f8f5;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body,
html {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    background: url('../uploads/starbucks-bg-pattern.png'), linear-gradient(135deg, #f1f8f5 0%, #d4e9e2 100%);
    background-size: cover;
    background-blend-mode: overlay;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Animation */
.bg-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 112, 74, 0.1), rgba(0, 112, 74, 0.05));
    backdrop-filter: blur(10px);
    animation: float 20s infinite ease-in-out;
}

.circle:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.circle:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.circle:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 20%;
    animation-duration: 20s;
    animation-delay: -10s;
}

@keyframes float {

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

    50% {
        transform: translate(30px, 20px);
    }
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    perspective: 1000px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 255, 255, 0.2);
    text-align: center;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Logo & Header */
.brand-header {
    margin-bottom: 2.5rem;
}

.logo-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #fff;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.starbucks-logo {
    width: 100%;
    height: 100%;
}

.main-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    background: linear-gradient(135deg, #00704A 0%, #1e1e1e 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-title {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #444;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

.input-wrapper {
    position: relative;
    transition: all 0.2s ease;
}

.custom-select,
.custom-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    font-size: 1rem;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: color 0.2s ease;
}

.custom-select:focus,
.custom-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 112, 74, 0.1);
    background: #fff;
}

.custom-select:focus+.input-icon,
.custom-input:focus~.input-icon {
    color: var(--primary-color);
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
}

/* Button */
.login-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(0, 112, 74, 0.2);
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 112, 74, 0.3);
}

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

.login-btn svg {
    transition: transform 0.2s ease;
}

.login-btn:hover svg {
    transform: translateX(3px);
}

/* Footer & Copyright */
.footer-text {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #888;
}

/* Error Message */
.error-toast {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #fee2e2;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid #fecaca;
    width: 90%;
    max-width: 300px;
    justify-content: center;
    z-index: 100;
}

.error-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Shake Animation for Error */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-4px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(4px);
    }
}

.shake {
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

/* Select Styling Tweaks */
select option {
    padding: 10px;
}