.login-card {
    border-radius: 1rem;
    border: none;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
}

.login-card:hover {
    transform: translateY(-5px);
}

.login-card .form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-card .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.login-card .btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.login-card .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

/* Login options styles */
.login-option-btn {
    padding: 1.25rem !important;
    font-size: 1.1rem !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease !important;
}

.login-option-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2) !important;
}

/* Wallet button styles */
.wallet-btn {
    padding: 1rem !important;
    display: flex !important;
    align-items: center;
    text-align: left;
    gap: 1rem;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.wallet-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2) !important;
}

.wallet-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.wallet-text {
    font-size: 1.1rem;
    font-weight: 500;
    flex-grow: 1;
}

.wallet-description {
    position: absolute;
    bottom: 0.5rem;
    left: 4.5rem;
    font-size: 0.8rem;
    color: #6c757d;
    opacity: 0.8;
}

.metamask-icon-small {
    width: 24px;
    height: 24px;
}

.back-btn {
    font-size: 1.1rem;
    color: #6c757d;
    text-decoration: none;
    z-index: 1;
}

.back-btn:hover {
    color: #0d6efd;
}

/* Web3 specific styles */
.web3-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

.web3-wallet-icon {
    transition: transform 0.3s ease;
}

.web3-wallet-icon:hover {
    transform: scale(1.05);
}

#connectWalletBtn {
    background: #037dd6;
    border-color: #037dd6;
}

#connectWalletBtn:hover {
    background: #0361aa;
    border-color: #0361aa;
}

#web3LoginBtn {
    background: #28a745;
    border-color: #28a745;
}

#web3LoginBtn:hover {
    background: #218838;
    border-color: #218838;
}

/* Device-specific displays */
/* Desktop (default) */
.desktop-wallets {
    display: grid !important;
}

.mobile-wallets {
    display: none !important;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Card transition animations */
.login-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.login-card.d-none {
    opacity: 0;
    transform: translateY(20px);
}

/* Alert styles */
.alert {
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Media queries following the guidelines */
/* Mobile devices */
@media only screen and (max-width: 767px) {
    .login-card {
        margin: 0 1rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }

    .wallet-btn {
        padding: 0.75rem !important;
    }

    .wallet-icon {
        width: 24px;
        height: 24px;
    }

    .wallet-text {
        font-size: 1rem;
    }

    .wallet-description {
        display: none;
    }

    .login-option-btn {
        padding: 1rem !important;
        font-size: 1rem !important;
    }

    /* Switch to mobile wallet display */
    .desktop-wallets {
        display: none !important;
    }

    .mobile-wallets {
        display: grid !important;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

/* Tablets */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
    .login-card {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Switch to mobile wallet display */
    .desktop-wallets {
        display: none !important;
    }

    .mobile-wallets {
        display: grid !important;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

/* Auth background and overlay styles */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/site/mashyields/background-lg.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 167, 69, 0.5);
    z-index: -1;
}

/* Auth form specific styles */
.auth-form {
    margin-bottom: 0;
}

.auth-form .form-control {
    height: calc(1.5em + 1rem + 2px);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.5rem;
}

.auth-form .btn {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.5rem;
}

.auth-form .auth-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-form .auth-link:hover {
    color: #0d6efd;
    text-decoration: underline;
}

/* Password toggle button */
.password-toggle {
    height: 100%;
    padding: 0 1rem;
    color: #6c757d;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #0d6efd;
}
