/* GOV.UK Digital Identity Login Page - Exact Design Match */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "GDS Transport", Arial, sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: white;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Container to ensure proper centering */
.container {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Page Header */
.page-header {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    background: #f3f4f6;
    padding: 8px 12px;
    border-radius: 4px;
}

/* Main Panel */
.main-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    max-width: 500px;
    width: calc(100% - 40px);
    margin: 0 auto;
    background: linear-gradient(180deg, #2E64C8 0%, #1A3A70 100%);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* GOV.UK Logo */
.gov-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 12px;
}

.crown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.crown-icon svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.gov-text {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.gov {
    color: white;
}

.dot {
    color: #87ceeb;
    margin: 0 4px;
    font-size: 24px;
}

.uk {
    color: white;
}

/* Login Text */
.login-text {
    font-size: 16px;
    font-weight: 400;
    color: white;
    margin-bottom: 8px;
    text-align: center;
}

.main-heading {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -0.5px;
}

/* Form */
.login-form {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    font-family: "GDS Transport", Arial, sans-serif;
    background: white;
    color: #1f2937;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    font-size: 16px;
    user-select: none;
}

.password-toggle:hover {
    color: #374151;
}

/* Verify Button */
.verify-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    font-family: "GDS Transport", Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.verify-btn:hover {
    background: #1d4ed8;
}

.verify-btn:active {
    background: #1e40af;
}

/* Security Text */
.security-text {
    font-size: 14px;
    color: white;
    text-align: center;
    font-weight: 400;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 640px) {
    .main-panel {
        padding: 30px 16px;
        margin: 20px;
        border-radius: 6px;
        width: calc(100% - 40px);
        max-width: none;
    }
    
    .gov-text {
        font-size: 24px;
    }
    
    .main-heading {
        font-size: 28px;
    }
    
    .login-form {
        max-width: 100%;
        width: 100%;
    }
    
    .page-header {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 20px;
        align-self: flex-start;
    }
    
    body {
        overflow-x: hidden;
    }
}

/* Focus states for accessibility */
.verify-btn:focus {
    outline: 2px solid #87ceeb;
    outline-offset: 2px;
}

.form-group input:focus {
    outline: 2px solid #87ceeb;
    outline-offset: 2px;
}