/* Login Page Styles – Gangotri brand (reference blue #ADD7F4) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gangotri-brand: #ADD7F4;
    --gangotri-primary: #3d7ab8;
    --gangotri-primary-dark: #1e4a6e;
    --gangotri-primary-light: #5a9fd4;
    --gangotri-accent: #2563a8;
    --gangotri-focus: rgba(61, 122, 184, 0.2);
    --gangotri-shadow: rgba(30, 74, 110, 0.28);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #e8f4fc;
    background: linear-gradient(160deg, #e8f4fc 0%, #ADD7F4 45%, #8ec4eb 100%);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    -webkit-tap-highlight-color: transparent;
}

.login-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 12px 0;
}

.login-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(30, 74, 110, 0.12), 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

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

.login-header {
    background: linear-gradient(135deg, #5a9fd4 0%, #3d7ab8 45%, #2b5f8f 100%);
    color: #ffffff;
    padding: 20px 30px;
    text-align: center;
}

.login-header-brand {
    background: linear-gradient(160deg, #fff7f7 0%, #ffe8ea 55%, #ffd6da 100%);
    color: #1a1a1a;
    padding: 22px 24px 18px;
}

.login-brand-logo {
    display: block;
    width: min(140px, 38vw);
    height: auto !important;
    max-width: 140px;
    max-height: none;
    margin: 0 auto 12px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    /* Logo already has rounded corners — never re-radius / cover (that fattens it) */
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent;
    flex-shrink: 0;
}

.login-brand-logo-sm {
    width: min(88px, 28vw);
    max-width: 88px;
    margin-bottom: 10px;
}

.login-header-brand .app-title {
    color: #E30613;
    font-size: 1.65rem;
    letter-spacing: 0.5px;
}

.login-header-brand .app-subtitle {
    color: #333;
    opacity: 1;
    font-weight: 600;
}

.login-header-brand .app-description {
    color: #555;
    opacity: 1;
}

.app-brand-tagline {
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #E30613;
    opacity: 0.85;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.app-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 5px;
    opacity: 0.9;
}

.app-description {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

.login-body {
    padding: 40px 30px;
    padding-top:20px;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-label i {
    margin-right: 8px;
    color: var(--gangotri-primary);
}

/* Mobile Input Wrapper with Country Code */
.mobile-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background-color: #f8f9fa;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mobile-input-wrapper:focus-within {
    border-color: var(--gangotri-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px var(--gangotri-focus);
}

.country-code {
    padding: 15px 15px 15px 20px;
    background-color: #1e4a6e;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-right: 2px solid #e0e0e0;
    white-space: nowrap;
}

.form-control.with-code {
    border: none;
    border-radius: 0;
    padding: 15px 20px;
    flex: 1;
    background-color: transparent;
}

.form-control.with-code:focus {
    outline: none;
    box-shadow: none;
    background-color: transparent;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: var(--gangotri-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px var(--gangotri-focus);
}

.form-control::placeholder {
    color: #999;
}

.text-danger {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #5a9fd4 0%, #3d7ab8 45%, #2b5f8f 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--gangotri-shadow);
}

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

.login-footer {
    margin-top: 25px;
    text-align: center;
}

.help-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.help-text i {
    margin-right: 5px;
    color: var(--gangotri-primary);
}

.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background-color: #dbeafe;
    color: #1e3a5c;
    border: 1px solid #93c5fd;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* OTP Input Styles */
.otp-input {
    text-align: center;
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: 600;
    padding: 20px;
}

.otp-input:focus {
    letter-spacing:1px;
}

/* Icons */
.icon-phone::before {
    content: "📱";
    margin-right: 5px;
}

.icon-arrow::after {
    content: "→";
    font-size: 1.2rem;
}

.icon-info::before {
    content: "ℹ️";
    margin-right: 5px;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.welcome-text {
    font-size: 1.2rem;
    opacity: 0.9;
}

.dashboard-content {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.info-card h3 {
    color: var(--gangotri-primary);
    margin-bottom: 20px;
}

.info-card ul {
    margin-top: 15px;
    padding-left: 20px;
}

.info-card li {
    margin-bottom: 10px;
    color: #555;
}

.btn-logout {
    display: inline-block;
    padding: 12px 30px;
    background: #dc3545;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-logout:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* Responsive Design – mobile first */
@media (max-width: 768px) {
    body { padding: 12px; }

    .login-container {
        max-width: 100%;
        padding: 8px 0;
    }

    .login-header {
        padding: 28px 20px;
    }

    .app-title {
        font-size: 1.75rem;
    }

    .app-subtitle {
        font-size: 0.95rem;
    }

    .login-body {
        padding: 24px 20px;
    }

    .form-control {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
    }

    .form-control.with-code {
        padding: 14px 16px;
        min-height: 48px;
    }

    .country-code {
        padding: 14px 12px 14px 16px;
        font-size: 0.95rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .btn-login {
        padding: 16px;
        font-size: 1rem;
        min-height: 48px;
        margin-top: 8px;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .login-card {
        border-radius: 16px;
    }

    .app-title {
        font-size: 1.5rem;
    }

    .login-header {
        padding: 15px 16px;
    }

    .login-body {
        padding: 20px 16px;
    }

    .mobile-input-wrapper {
        
        border-radius: 12px;
    }

    .country-code {
       
        padding: 14px 16px;
        border-right: none;
        text-align: center;
        min-height: 44px;
    }

    .form-control.with-code {
        border-radius: 0 0 10px 10px;
        min-height: 48px;
    }

    .btn-login {
        min-height: 48px;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .login-container {
        padding: 10px;
    }

    .login-header {
        padding: 20px 30px;
    }

    .login-body {
        padding: 20px 30px;
    }
}
