/**
 * Shirley Creek Controls - Authentication Page Styles
 */

:root {
    --sc-black: #000000;
    --sc-gold: #d4af37;
    --sc-green: #28a745;
}

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

body {
    background: var(--sc-black);
    color: var(--sc-gold);
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 10px;
}

/* Mobile-specific - equal padding top and bottom for true centering */
@media (max-width: 767px) {
    body {
        padding: 10vh 10px;
    }
}

.login-container {
    max-width: 400px;
    width: 100%;
}

/* Wider login on desktop/tablet */
@media (min-width: 768px) {
    .login-container {
        max-width: 800px;
        padding: 20px;
    }
}

.login-card {
    background: #1a1a1a;
    border: 1px solid var(--sc-gold);
    border-radius: 12px;
    padding: 15px 25px;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

@media (min-width: 768px) {
    .login-card {
        padding: 20px 30px;
    }
}

.brand-icon {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 280px;
}

.brand-icon i {
    font-size: 40px;
    color: var(--sc-black);
}

h1 {
    color: var(--sc-gold);
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .subtitle {
        margin-bottom: 15px;
    }

    .mb-3 {
        margin-bottom: 0.75rem !important;
    }
}

.form-label {
    color: var(--sc-gold);
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
}

.form-control:focus {
    background: #2a2a2a;
    border-color: var(--sc-gold);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.btn-primary {
    background: var(--sc-gold);
    border: none;
    color: var(--sc-black);
    font-weight: 600;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #c4a030;
    transform: translateY(-1px);
}

.btn-google {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sc-gold);
    color: var(--sc-gold);
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    width: 100%;
    transition: all 0.3s;
    background: transparent;
}

.btn-google:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--sc-gold);
}

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

.divider {
    text-align: center;
    margin: 20px 0;
    color: #666;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #444;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.alert {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #ff6b6b;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}
