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

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

.container-fluid {
    height: 100vh;
    padding: 0;
}

.row {
    height: 100%;
    margin: 0;
}

/* X-Ray Section */
.xray-section {
    background: linear-gradient(135deg, #f0f2f5 0%, #e8eaf0 100%);
    position: relative;
    overflow: hidden;
}

.xray-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
}

.xray-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 12px;
}

.xray-info {
    display: flex;
    flex-direction: column;
}

.xray-title {
    font-weight: bold;
    font-size: 14px;
}

.xray-id {
    font-size: 11px;
    opacity: 0.8;
}

.xray-battery {
    display: flex;
    align-items: center;
    gap: 5px;
}

.battery-percentage {
    font-size: 12px;
}

.xray-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.xray-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: invert(1) contrast(1.2) brightness(0.8);
    border-radius: 10px;
}

.xray-markers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.marker {
    position: absolute;
    color: white;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-left {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.marker-right {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.marker-text {
    font-size: 24px;
    line-height: 1;
}

.marker-subtext {
    font-size: 16px;
    opacity: 0.8;
}

.ok-gesture {
    position: absolute;
    right: 30%;
    top: 40%;
    transform: translate(50%, -50%);
}

.gesture-circle {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.6; }
}

/* Medical Decoration */
.medical-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    pointer-events: none;
}

.stethoscope {
    position: absolute;
    bottom: 20px;
    left: 20px;
    opacity: 0.3;
}

.pills {
    position: absolute;
    bottom: 30px;
    right: 30px;
    opacity: 0.3;
}

.decoration-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

/* Login Section */
.login-section {
    background: white;
    padding: 40px;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    border-radius: 15px;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
}

.logo-icon {
    font-size: 32px;
    color: #20B2AA;
}

.logo-text {
    font-size: 32px;
    font-weight: 300;
    color: #20B2AA;
    margin: 0;
}

.login-title {
    font-size: 28px;
    font-weight: 400;
    color: #20B2AA;
    margin-bottom: 30px;
}

.form-label {
    color: #20B2AA;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    border: none;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 0;
    padding: 15px 0;
    font-size: 16px;
    background: transparent;
    transition: border-color 0.3s ease;
    color: #666;
}

.form-control:focus {
    box-shadow: none;
    border-color: #20B2AA;
    background: transparent;
    outline: none;
}

.form-control::placeholder {
    color: #999;
    font-size: 16px;
}

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
}

.password-toggle:hover {
    color: #20B2AA;
}

.forgot-password-container {
    text-align: right;
}

.forgot-password-link {
    color: #20B2AA;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password-link:hover {
    text-decoration: underline;
    color: #20B2AA;
}

.btn-login {
    background: #20B2AA;
    border: none;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover {
    background: #1a9a93;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 178, 170, 0.3);
}

.signup-text {
    color: #666;
    font-size: 14px;
}

.signup-link {
    color: #20B2AA;
    text-decoration: none;
    font-weight: 500;
}

.signup-link:hover {
    text-decoration: underline;
    color: #20B2AA;
}

/* Sign Up Form Specific Styles */
.signup-step {
    transition: all 0.3s ease-in-out;
}

.form-control, .form-control:focus {
    border-radius: 0;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

select.form-control:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2320B2AA' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

.btn-secondary {
    background-color: #e9ecef;
    border: none;
    color: #495057;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: #dee2e6;
    color: #495057;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 236, 239, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .xray-section {
        display: none;
    }

    .login-section {
        padding: 20px;
    }

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

    html, body {
        overflow: auto;
    }

    .row .col-md-6 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 992px) {
    .xray-image {
        max-width: 90%;
        max-height: 70%;
    }
    
    .medical-decoration {
        height: 100px;
    }
    
    .decoration-img {
        width: 60px;
        height: 60px;
    }
}
