/* 1. Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica', 'Arial', sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Κλειδώνει την οθόνη για να μην κουνιέται */
}

/* 2. Header & Password Button */
header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 20px 30px;
    position: absolute; /* Το βγάζουμε από το flow για να μην σπρώχνει το κέντρο */
    top: 0;
}

.pw-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 16px;
    font-size: 10px;
    letter-spacing: 2px;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.pw-btn:hover {
    background: #fff;
    color: #000;
}

/* 3. Main Container (No-Scroll Logic) */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Κεντράρει τα πάντα κατακόρυφα */
    align-items: center;
    text-align: center;
    padding: 0 ;
    width: 100%;
    max-height: 100vh;
}

.logo img {
    width:1500px; /* Ισορροπημένο μέγεθος */
  
    margin-bottom: 5px; /* Μικρότερο κενό για να κερδίσουμε χώρο */
}

/* 4. Typography */
h1 {
    font-size: 2.8rem;
    letter-spacing: 5px;
    margin-bottom: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

p {
    font-size: 14px;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* 5. The Rectangle Frame (Optimized) */
.form-container {
    width: 100%;
    max-width: 850px; /* Μεγάλο πλάτος */
    margin: 0 auto;
    
}

.rectangle-frame {
   
    background-color: transparent; 
    height: 550px; /* Ιδανικό ύψος για να μην χρειάζεται scroll */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 6. Iframe Styling */
iframe {
    width: 100%;
    height: 100%;
    border: none;
    /* Μικρό scale-down αν η φόρμα είναι φορτωμένη μέσα στο Fillout */
    transform: scale(0.95); 
    transform-origin: center;
}

/* 7. Mobile Optimization */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }
    
    .logo img {
        width: 180px;
    }
    
    .rectangle-frame {
        height: 130px; /* Λίγο περισσότερο ύψος στα κινητά γιατί τα inputs στοιβάζονται */
    }
    
    iframe {
        transform: scale(1);
    }
}
.pw-btn {
    text-decoration: none; /* Αφαιρεί την υπογράμμιση */
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 20px;
    font-size: 11px;
    letter-spacing: 2px;
    cursor: pointer;
    text-transform: uppercase;
    display: inline-block; /* Απαραίτητο για να δουλέψουν τα paddings */
    transition: 0.3s ease;
}

.pw-btn:hover {
    background: #fff;
    color: #000;
}
.passcode-screen {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px); /* Το εφέ που βλέπεις στην εικόνα */
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}
.key.delete {
    font-size: 22px;
    
}
.error-msg{
    color:#ff3b30;
    text-align:center;
    margin-top:10px;
    opacity:0;
    font-size:14px;
    transition:0.3s;
}

.error-msg.show{
    opacity:1;
}

@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.4s;
}
.key.delete:hover {
    background: #ddd;
}
.dots-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.dot {
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-radius: 50%;
    opacity: 0.7;
    transition: 0.2s;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}
.lock-icon img {
    width: 30px;
    margin-bottom: 20px;
}

h2 { font-weight: 400; margin-bottom: 5px; }
.passcode-msg { font-size: 13px; opacity: 0.8; margin-bottom: 30px; }

/* Τελεία για τον κωδικό */
.dots-container {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}
.dot {
    width: 12px;
    height: 12px;
    border: 1.5px solid #fff;
    border-radius: 50%;
}

/* Το Keypad */
.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 30px;
    max-width: 300px;
}

.key {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15); /* Ημιδιαφανές λευκό */
    color: white;
    font-size: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
 
}

.key span {
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: bold;
}

.key:active {
    background: rgba(255, 255, 255, 0.4);
}

.footer-actions {
    margin-top: 60px;
    width: 100%;
    max-width: 300px;
    display: flex;
    justify-content: space-between;
}

.action-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 15px;
    cursor: pointer;
}
/* CRACK SCREEN */

.crack-overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: #000000;
    opacity:0;
    pointer-events:none;
    z-index:9999;
    transition:0.2s;
}

.crack-overlay.show{
    opacity:1;
}

/* SCREEN SHAKE */

@keyframes screenShake{
    0%{transform:translate(0)}
    20%{transform:translate(-8px,5px)}
    40%{transform:translate(8px,-5px)}
    60%{transform:translate(-6px,4px)}
    80%{transform:translate(6px,-4px)}
    100%{transform:translate(0)}
}

.screen-shake{
    animation:screenShake 0.5s;
}

/* ACCESS GRANTED TEXT */

.access-granted{
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    color:#00ff9c;
    font-size:40px;
    font-weight:bold;
    letter-spacing:4px;
    opacity:0;
    z-index:10000;
    text-shadow:0 0 20px #00ff9c;
    transition:0.3s;
}

.access-granted.show{
    opacity:1;
}
