* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #003d9e;
    --secondary-color: #1e90ff;
    --dark-blue: #0a1428;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
}

.login-body {
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.3) 0%, rgba(30, 144, 255, 0.2) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('20260418_154845000_iOS.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}


.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.card h1 {
    font-size: 28px;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.subtitle {
    text-align: center;
    color: #999;
    font-size: 16px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 12px;
    border: none;
    border-bottom: 2px solid var(--border-color);
    font-size: 16px;
    transition: border-color 0.3s;
    background: transparent;
}

.form-group input:focus {
    outline: none;
    border-bottom-color: var(--secondary-color);
}

.form-group input::placeholder {
    color: #ccc;
}

.error-message {
    background-color: #fee;
    color: #c33;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    border-left: 3px solid #c33;
}

.terms-text {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin: 25px 0 20px 0;
}

.terms-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover {
    text-decoration: underline;
}

.btn-continue {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.3);
}

.btn-continue:active {
    transform: translateY(0);
}

.back-link {
    display: block;
    text-align: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary-color);
}

.cancel-link {
    display: block;
    text-align: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    margin-top: 12px;
    transition: color 0.3s;
}

.cancel-link:hover {
    color: var(--primary-color);
}


.otp-form {
    text-align: center;
}

.otp-input {
    font-size: 28px !important;
    letter-spacing: 8px;
    text-align: center;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}


.dashboard-container {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.3) 0%, rgba(30, 144, 255, 0.2) 100%);
    background-image: url('20260418_154845000_iOS.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 20px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container-small {
    margin-right: 20px;
}

.logo-small {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.header-text {
    color: white;
}

.header-text h1 {
    font-size: 24px;
    margin: 0;
}

.header-text p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.dashboard-content {
    max-width: 500px;
    margin: 0 auto;
}

.card h2 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--text-color);
    text-align: center;
}

.credential-item {
    margin-bottom: 25px;
}

.credential-item label {
    display: block;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.credential-value {
    display: flex;
    gap: 8px;
    align-items: center;
}

.credential-value input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: #f9f9f9;
    font-weight: 500;
}

.credential-value input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: white;
}

.toggle-btn,
.copy-btn {
    padding: 10px 12px;
    background: #f0f0f0;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
}

.toggle-btn:hover,
.copy-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.eye-icon,
.copy-icon {
    display: inline-block;
}

.btn-logout {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}


@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
    }

    .card h1 {
        font-size: 24px;
    }

    .login-container {
        max-width: 100%;
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }

    .logo-container-small {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .btn-continue,
    .btn-logout {
        padding: 12px;
        font-size: 15px;
    }

    .credential-value {
        flex-wrap: wrap;
    }

    .credential-value input {
        min-width: 150px;
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}


.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    animation: slideUp 0.5s ease-out;
}

.loading-card {
    background: white;
    border-radius: 20px;
    padding: 60px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    text-align: center;
}

.loading-card h1 {
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.loading-text {
    color: #666;
    font-size: 15px;
    margin-bottom: 40px;
}

.loading-bar-container {
    background: #f0f0f0;
    border-radius: 10px;
    height: 8px;
    margin-bottom: 25px;
    overflow: hidden;
}

.loading-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    height: 100%;
    border-radius: 10px;
    animation: loadingAnimation 3s ease-in-out forwards;
}

@keyframes loadingAnimation {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

.loading-status {
    color: #999;
    font-size: 14px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}
