/* Auth pages styling */

/* Background and overlay */
.auth-background {
    background-image: url('/assets/site/mashyields/background-lg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 255, 0, 0.5);
    pointer-events: none;
    z-index: -1;
}

/* Auth card styling */
.auth-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.auth-card .card-header {
    background-color: rgba(0, 128, 0, 0.7);
    color: white;
    font-weight: bold;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 1rem;
}

.auth-card .card-body {
    padding: 2rem;
}

.auth-btn {
    background-color: rgba(0, 128, 0, 0.8);
    border-color: rgba(0, 100, 0, 0.9);
}

.auth-btn:hover {
    background-color: rgba(0, 100, 0, 1);
    border-color: rgba(0, 80, 0, 1);
}

.auth-link {
    color: rgba(0, 100, 0, 0.9);
}

.auth-link:hover {
    color: rgba(0, 80, 0, 1);
}

/* Information Card Styling */
.info-card {
    border-left: 4px solid rgba(0, 128, 0, 0.7);
    border-right: 4px solid rgba(0, 128, 0, 0.7);
}

.info-card .card-header {
    background-color: rgba(0, 100, 0, 0.8);
}

.info-card h5 {
    color: rgba(0, 100, 0, 1);
    font-weight: 600;
}

.info-card .fa-user-clock, 
.info-card .fa-user-plus {
    color: rgba(0, 128, 0, 0.8);
}

.info-card strong {
    color: rgba(0, 100, 0, 0.9);
}

.info-card .border-end {
    border-color: rgba(0, 128, 0, 0.3) !important;
}

/* Wallet Connection Styling */
.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.wallet-option {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.wallet-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.wallet-option:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.wallet-option img {
    width: 32px;
    height: 32px;
    margin-right: 16px;
    border-radius: 8px;
}

.wallet-option-content {
    flex: 1;
    text-align: left;
}

.wallet-option-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    color: #333;
}

.wallet-option-description {
    font-size: 0.9rem;
    color: #666;
    margin: 4px 0 0 0;
}

.wallet-option::after {
    content: '→';
    position: absolute;
    right: 24px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
}

.wallet-option:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.wallet-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f5f5f5;
}

.wallet-option.disabled:hover {
    transform: none;
    box-shadow: none;
}

.wallet-auth-section {
    padding: 20px;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
    color: #333;
}

.auth-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 32px;
    text-align: center;
}

#signMessageBtn {
    margin-top: 24px;
    width: 100%;
    max-width: 400px;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
}

#wallet-status {
    margin-top: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.alert {
    border-radius: 12px;
    border: none;
}

/* Media queries */
/* Extra small devices (phones, 320px - 480px) */
@media only screen and (min-width: 320px) and (max-width: 480px) {
    .auth-card {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .auth-card .card-body {
        padding: 1rem;
    }
    
    .info-card .col-md-6 {
        border: none !important;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid rgba(0, 128, 0, 0.3) !important;
    }
    
    .info-card .col-md-6:last-child {
        border-bottom: none !important;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

/* Small devices (large phones, 481px - 767px) */
@media only screen and (min-width: 481px) and (max-width: 767px) {
    .auth-card {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .info-card .col-md-6 {
        border: none !important;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid rgba(0, 128, 0, 0.3) !important;
    }
    
    .info-card .col-md-6:last-child {
        border-bottom: none !important;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}
